Safe Haskell | None |
---|---|
Language | Haskell2010 |
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.
Instances
Eq TextureView Source # | |
Defined in WGPU.Internal.Texture (==) :: TextureView -> TextureView -> Bool # (/=) :: TextureView -> TextureView -> Bool # | |
Show TextureView Source # | |
Defined in WGPU.Internal.Texture showsPrec :: Int -> TextureView -> ShowS # show :: TextureView -> String # showList :: [TextureView] -> ShowS # | |
ToRaw TextureView WGPUTextureView Source # | |
Defined in WGPU.Internal.Texture raw :: TextureView -> ContT r IO WGPUTextureView Source # |
data TextureFormat Source #
Texture data format.
Instances
Eq TextureFormat Source # | |
Defined in WGPU.Internal.Texture (==) :: TextureFormat -> TextureFormat -> Bool # (/=) :: TextureFormat -> TextureFormat -> Bool # | |
Show TextureFormat Source # | |
Defined in WGPU.Internal.Texture showsPrec :: Int -> TextureFormat -> ShowS # show :: TextureFormat -> String # showList :: [TextureFormat] -> ShowS # | |
ToRaw TextureFormat WGPUTextureFormat Source # | |
Defined in WGPU.Internal.Texture 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.
TextureUsage | |
|
Instances
Eq TextureUsage Source # | |
Defined in WGPU.Internal.Texture (==) :: TextureUsage -> TextureUsage -> Bool # (/=) :: TextureUsage -> TextureUsage -> Bool # | |
Show TextureUsage Source # | |
Defined in WGPU.Internal.Texture showsPrec :: Int -> TextureUsage -> ShowS # show :: TextureUsage -> String # showList :: [TextureUsage] -> ShowS # | |
Default TextureUsage Source # | |
Defined in WGPU.Internal.Texture def :: TextureUsage # | |
ToRaw TextureUsage WGPUTextureUsageFlags Source # | |
Defined in WGPU.Internal.Texture raw :: TextureUsage -> ContT r IO WGPUTextureUsageFlags Source # |
data TextureViewDimension Source #
Dimensions of a particular texture view.
TextureViewDimension1D | |
TextureViewDimension2D | |
TextureViewDimension2DArray | |
TextureViewDimensionCube | |
TextureViewDimensionCubeArray | |
TextureViewDimension3D |
Instances
Eq TextureViewDimension Source # | |
Defined in WGPU.Internal.Texture (==) :: TextureViewDimension -> TextureViewDimension -> Bool # (/=) :: TextureViewDimension -> TextureViewDimension -> Bool # | |
Show TextureViewDimension Source # | |
Defined in WGPU.Internal.Texture showsPrec :: Int -> TextureViewDimension -> ShowS # show :: TextureViewDimension -> String # showList :: [TextureViewDimension] -> ShowS # | |
ToRaw TextureViewDimension WGPUTextureViewDimension Source # | |
Defined in WGPU.Internal.Texture |
data TextureDimension Source #
Dimensionality of a texture.
Instances
Eq TextureDimension Source # | |
Defined in WGPU.Internal.Texture (==) :: TextureDimension -> TextureDimension -> Bool # (/=) :: TextureDimension -> TextureDimension -> Bool # | |
Show TextureDimension Source # | |
Defined in WGPU.Internal.Texture showsPrec :: Int -> TextureDimension -> ShowS # show :: TextureDimension -> String # showList :: [TextureDimension] -> ShowS # | |
ToRaw TextureDimension WGPUTextureDimension Source # | |
Defined in WGPU.Internal.Texture raw :: TextureDimension -> ContT r IO WGPUTextureDimension Source # |
data TextureDescriptor Source #
Describes a Texture
.
TextureDescriptor | |
|
Instances
Eq TextureDescriptor Source # | |
Defined in WGPU.Internal.Texture (==) :: TextureDescriptor -> TextureDescriptor -> Bool # (/=) :: TextureDescriptor -> TextureDescriptor -> Bool # | |
Show TextureDescriptor Source # | |
Defined in WGPU.Internal.Texture showsPrec :: Int -> TextureDescriptor -> ShowS # show :: TextureDescriptor -> String # showList :: [TextureDescriptor] -> ShowS # | |
ToRaw TextureDescriptor WGPUTextureDescriptor Source # | |
Defined in WGPU.Internal.Texture raw :: TextureDescriptor -> ContT r IO WGPUTextureDescriptor Source # |
data TextureViewDescriptor Source #
Describes a TextureView
.
Instances
Eq TextureViewDescriptor Source # | |
Defined in WGPU.Internal.Texture (==) :: TextureViewDescriptor -> TextureViewDescriptor -> Bool # (/=) :: TextureViewDescriptor -> TextureViewDescriptor -> Bool # | |
Show TextureViewDescriptor Source # | |
Defined in WGPU.Internal.Texture showsPrec :: Int -> TextureViewDescriptor -> ShowS # show :: TextureViewDescriptor -> String # showList :: [TextureViewDescriptor] -> ShowS # | |
ToRaw TextureViewDescriptor WGPUTextureViewDescriptor Source # | |
Defined in WGPU.Internal.Texture |
Functions
:: 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.
:: 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.