wgpu-hs-0.4.0.0: WGPU
Safe HaskellNone
LanguageHaskell2010

WGPU.Internal.Texture

Description

 
Synopsis

Types

newtype TextureView Source #

Handle to a texture view.

A TextureView describes a texture and associated metadata needed by a rendering pipeline or bind group.

Instances

Instances details
Eq TextureView Source # 
Instance details

Defined in WGPU.Internal.Texture

Show TextureView Source # 
Instance details

Defined in WGPU.Internal.Texture

ToRaw TextureView WGPUTextureView Source # 
Instance details

Defined in WGPU.Internal.Texture

data TextureFormat Source #

Texture data format.

data TextureUsage Source #

Different ways you can use a texture.

The usages determine from what kind of memory the texture is allocated, and in what actions the texture can partake.

Functions

createTexture Source #

Arguments

:: MonadIO m 
=> Device

Device for which to create the texture.

-> TextureDescriptor

Description of the texture to create.

-> m Texture

Action to create the texture.

Create a texture.

createView Source #

Arguments

:: MonadIO m 
=> Texture

Texture for which the view should be created.

-> TextureViewDescriptor

Description of the texture view.

-> m TextureView

Created texture view.

Create a view of a texture.