| 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
- data TextureViewDimension
- 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 c 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 c 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
| TextureUsageCopySrc | |
| TextureUsageCopyDst | |
| TextureUsageSampled | |
| TextureUsageStorage | |
| TextureUsageRenderAttachment |
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 # | |
| ToRaw TextureUsage WGPUTextureUsage Source # | |
Defined in WGPU.Internal.Texture Methods raw :: TextureUsage -> ContT c IO WGPUTextureUsage 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 c IO WGPUTextureViewDimension Source # | |