| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
WGPU.Internal.Texture
Description
Synopsis
- newtype TextureView = TextureView {}
- data TextureFormat
- = TextureFormatR8Unorm
- | TextureFormatR8Snorm
- | TextureFormatR8Uint
- | TextureFormatR8Sint
- | TextureFormatR16Uint
- | TextureFormatR16Sint
- | TextureFormatR16Float
- | TextureFormatRG8Unorm
- | TextureFormatRG8Snorm
- | TextureFormatRG8Uint
- | TextureFormatRG8Sint
- | TextureFormatR32Float
- | TextureFormatR32Uint
- | TextureFormatR32Sint
- | TextureFormatRG16Uint
- | TextureFormatRG16Sint
- | TextureFormatRG16Float
- | TextureFormatRGBA8Unorm
- | TextureFormatRGBA8UnormSrgb
- | TextureFormatRGBA8Snorm
- | TextureFormatRGBA8Uint
- | TextureFormatRGBA8Sint
- | TextureFormatBGRA8Unorm
- | TextureFormatBGRA8UnormSrgb
- | TextureFormatRGB10A2Unorm
- | TextureFormatRG11B10Ufloat
- | TextureFormatRGB9E5Ufloat
- | TextureFormatRG32Float
- | TextureFormatRG32Uint
- | TextureFormatRG32Sint
- | TextureFormatRGBA16Uint
- | TextureFormatRGBA16Sint
- | TextureFormatRGBA16Float
- | TextureFormatRGBA32Float
- | TextureFormatRGBA32Uint
- | TextureFormatRGBA32Sint
- | TextureFormatDepth32Float
- | TextureFormatDepth24Plus
- | TextureFormatDepth24PlusStencil8
- | TextureFormatStencil8
- | TextureFormatBC1RGBAUnorm
- | TextureFormatBC1RGBAUnormSrgb
- | TextureFormatBC2RGBAUnorm
- | TextureFormatBC2RGBAUnormSrgb
- | TextureFormatBC3RGBAUnorm
- | TextureFormatBC3RGBAUnormSrgb
- | TextureFormatBC4RUnorm
- | TextureFormatBC4RSnorm
- | TextureFormatBC5RGUnorm
- | TextureFormatBC5RGSnorm
- | TextureFormatBC6HRGBUfloat
- | TextureFormatBC6HRGBFloat
- | TextureFormatBC7RGBAUnorm
- | TextureFormatBC7RGBAUnormSrgb
- data TextureUsage = TextureUsage {
- texCopySrc :: !Bool
- texCopyDst :: !Bool
- texSampled :: !Bool
- texStorage :: !Bool
- texRenderAttachment :: !Bool
- data TextureViewDimension
- data TextureDimension
- data TextureDescriptor = TextureDescriptor {
- textureLabel :: !Text
- textureSize :: !Extent3D
- mipLevelCount :: !Word32
- sampleCount :: !Word32
- dimension :: !TextureDimension
- format :: !TextureFormat
- textureUsage :: !TextureUsage
- data TextureViewDescriptor = TextureViewDescriptor {}
- createTexture :: MonadIO m => Device -> TextureDescriptor -> m Texture
- createView :: MonadIO m => Texture -> TextureViewDescriptor -> m TextureView
- textureFormatFromRaw :: WGPUTextureFormat -> TextureFormat
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.
Constructors
| TextureView | |
Fields | |
Instances
| Eq TextureView Source # | |
Defined in WGPU.Internal.Texture | |
| Show TextureView Source # | |
Defined in WGPU.Internal.Texture Methods showsPrec :: Int -> TextureView -> ShowS # show :: TextureView -> String # showList :: [TextureView] -> ShowS # | |
| ToRaw TextureView WGPUTextureView Source # | |
Defined in WGPU.Internal.Texture Methods raw :: TextureView -> ContT r IO WGPUTextureView Source # | |
data TextureFormat Source #
Texture data format.
Constructors
Instances
| Eq TextureFormat Source # | |
Defined in WGPU.Internal.Texture Methods (==) :: TextureFormat -> TextureFormat -> Bool # (/=) :: TextureFormat -> TextureFormat -> Bool # | |
| Show TextureFormat Source # | |
Defined in WGPU.Internal.Texture Methods showsPrec :: Int -> TextureFormat -> ShowS # show :: TextureFormat -> String # showList :: [TextureFormat] -> ShowS # | |
| ToRaw TextureFormat WGPUTextureFormat Source # | |
Defined in WGPU.Internal.Texture Methods raw :: TextureFormat -> ContT r IO WGPUTextureFormat Source # | |
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.
Constructors
| TextureUsage | |
Fields
| |
Instances
| Eq TextureUsage Source # | |
Defined in WGPU.Internal.Texture | |
| Show TextureUsage Source # | |
Defined in WGPU.Internal.Texture Methods showsPrec :: Int -> TextureUsage -> ShowS # show :: TextureUsage -> String # showList :: [TextureUsage] -> ShowS # | |
| Default TextureUsage Source # | |
Defined in WGPU.Internal.Texture Methods def :: TextureUsage # | |
| ToRaw TextureUsage WGPUTextureUsageFlags Source # | |
Defined in WGPU.Internal.Texture Methods raw :: TextureUsage -> ContT r IO WGPUTextureUsageFlags Source # | |
data TextureViewDimension Source #
Dimensions of a particular texture view.
Constructors
| TextureViewDimension1D | |
| TextureViewDimension2D | |
| TextureViewDimension2DArray | |
| TextureViewDimensionCube | |
| TextureViewDimensionCubeArray | |
| TextureViewDimension3D |
Instances
| Eq TextureViewDimension Source # | |
Defined in WGPU.Internal.Texture Methods (==) :: TextureViewDimension -> TextureViewDimension -> Bool # (/=) :: TextureViewDimension -> TextureViewDimension -> Bool # | |
| Show TextureViewDimension Source # | |
Defined in WGPU.Internal.Texture Methods showsPrec :: Int -> TextureViewDimension -> ShowS # show :: TextureViewDimension -> String # showList :: [TextureViewDimension] -> ShowS # | |
| ToRaw TextureViewDimension WGPUTextureViewDimension Source # | |
Defined in WGPU.Internal.Texture Methods raw :: TextureViewDimension -> ContT r IO WGPUTextureViewDimension Source # | |
data TextureDimension Source #
Dimensionality of a texture.
Constructors
| TextureDimension1D | |
| TextureDimension2D | |
| TextureDimension3D |
Instances
| Eq TextureDimension Source # | |
Defined in WGPU.Internal.Texture Methods (==) :: TextureDimension -> TextureDimension -> Bool # (/=) :: TextureDimension -> TextureDimension -> Bool # | |
| Show TextureDimension Source # | |
Defined in WGPU.Internal.Texture Methods showsPrec :: Int -> TextureDimension -> ShowS # show :: TextureDimension -> String # showList :: [TextureDimension] -> ShowS # | |
| ToRaw TextureDimension WGPUTextureDimension Source # | |
Defined in WGPU.Internal.Texture Methods raw :: TextureDimension -> ContT r IO WGPUTextureDimension Source # | |
data TextureDescriptor Source #
Describes a Texture.
Constructors
| TextureDescriptor | |
Fields
| |
Instances
| Eq TextureDescriptor Source # | |
Defined in WGPU.Internal.Texture Methods (==) :: TextureDescriptor -> TextureDescriptor -> Bool # (/=) :: TextureDescriptor -> TextureDescriptor -> Bool # | |
| Show TextureDescriptor Source # | |
Defined in WGPU.Internal.Texture Methods showsPrec :: Int -> TextureDescriptor -> ShowS # show :: TextureDescriptor -> String # showList :: [TextureDescriptor] -> ShowS # | |
| ToRaw TextureDescriptor WGPUTextureDescriptor Source # | |
Defined in WGPU.Internal.Texture Methods raw :: TextureDescriptor -> ContT r IO WGPUTextureDescriptor Source # | |
data TextureViewDescriptor Source #
Describes a TextureView.
Constructors
| TextureViewDescriptor | |
Instances
| Eq TextureViewDescriptor Source # | |
Defined in WGPU.Internal.Texture Methods (==) :: TextureViewDescriptor -> TextureViewDescriptor -> Bool # (/=) :: TextureViewDescriptor -> TextureViewDescriptor -> Bool # | |
| Show TextureViewDescriptor Source # | |
Defined in WGPU.Internal.Texture Methods showsPrec :: Int -> TextureViewDescriptor -> ShowS # show :: TextureViewDescriptor -> String # showList :: [TextureViewDescriptor] -> ShowS # | |
| ToRaw TextureViewDescriptor WGPUTextureViewDescriptor Source # | |
Defined in WGPU.Internal.Texture Methods raw :: TextureViewDescriptor -> ContT r IO WGPUTextureViewDescriptor Source # | |
Functions
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.
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.