| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
WGPU.Internal.Multipurpose
Contents
Description
This is a bit like a Types module. It exists to collect things which are somewhat generic and are used in more than one part of the API.
Synopsis
- data Texture = Texture {}
- data CompareFunction
- data Origin3D = Origin3D {}
- data Extent3D = Extent3D {}
- data TextureAspect
- data ImageCopyTexture = ImageCopyTexture {}
- data TextureDataLayout = TextureDataLayout {
- textureOffset :: !Word64
- bytesPerRow :: !Word32
- rowsPerImage :: !Word32
- data IndexFormat
Types
Handle to a texture.
Constructors
| Texture | |
Fields
| |
data CompareFunction Source #
Comparison function used for depth and stencil operations.
Constructors
| CompareFunctionNever | |
| CompareFunctionLess | |
| CompareFunctionEqual | |
| CompareFunctionLessEqual | |
| CompareFunctionGreater | |
| CompareFunctionNotEqual | |
| CompareFunctionGreaterEqual | |
| CompareFunctionAlways |
Instances
| Eq CompareFunction Source # | |
Defined in WGPU.Internal.Multipurpose Methods (==) :: CompareFunction -> CompareFunction -> Bool # (/=) :: CompareFunction -> CompareFunction -> Bool # | |
| Show CompareFunction Source # | |
Defined in WGPU.Internal.Multipurpose Methods showsPrec :: Int -> CompareFunction -> ShowS # show :: CompareFunction -> String # showList :: [CompareFunction] -> ShowS # | |
| ToRaw CompareFunction WGPUCompareFunction Source # | Convert a |
Defined in WGPU.Internal.Multipurpose Methods raw :: CompareFunction -> ContT r IO WGPUCompareFunction Source # | |
Origin of a copy to/from a texture.
Extent of a texture or texture-related operation.
Constructors
| Extent3D | |
Fields
| |
data TextureAspect Source #
Kind of data a texture holds.
Instances
| Eq TextureAspect Source # | |
Defined in WGPU.Internal.Multipurpose Methods (==) :: TextureAspect -> TextureAspect -> Bool # (/=) :: TextureAspect -> TextureAspect -> Bool # | |
| Show TextureAspect Source # | |
Defined in WGPU.Internal.Multipurpose Methods showsPrec :: Int -> TextureAspect -> ShowS # show :: TextureAspect -> String # showList :: [TextureAspect] -> ShowS # | |
| ToRaw TextureAspect WGPUTextureAspect Source # | |
Defined in WGPU.Internal.Multipurpose Methods raw :: TextureAspect -> ContT r IO WGPUTextureAspect Source # | |
data ImageCopyTexture Source #
View of a texture which can be used to copy tofrom a buffertexture.
Constructors
| ImageCopyTexture | |
Instances
| ToRaw ImageCopyTexture WGPUImageCopyTexture Source # | |
Defined in WGPU.Internal.Multipurpose Methods raw :: ImageCopyTexture -> ContT r IO WGPUImageCopyTexture Source # | |
data TextureDataLayout Source #
Layout of a texture in a buffer's memory.
Constructors
| TextureDataLayout | |
Fields
| |
Instances
| Eq TextureDataLayout Source # | |
Defined in WGPU.Internal.Multipurpose Methods (==) :: TextureDataLayout -> TextureDataLayout -> Bool # (/=) :: TextureDataLayout -> TextureDataLayout -> Bool # | |
| Show TextureDataLayout Source # | |
Defined in WGPU.Internal.Multipurpose Methods showsPrec :: Int -> TextureDataLayout -> ShowS # show :: TextureDataLayout -> String # showList :: [TextureDataLayout] -> ShowS # | |
| ToRaw TextureDataLayout WGPUTextureDataLayout Source # | |
Defined in WGPU.Internal.Multipurpose Methods raw :: TextureDataLayout -> ContT r IO WGPUTextureDataLayout Source # | |
data IndexFormat Source #
Format of indices used within a pipeline.
Constructors
| IndexFormatUint16 | Indices are 16-bit unsigned integers ( |
| IndexFormatUint32 | Indices are 32-bit unsigned integers ( |
Instances
| Eq IndexFormat Source # | |
Defined in WGPU.Internal.Multipurpose | |
| Show IndexFormat Source # | |
Defined in WGPU.Internal.Multipurpose Methods showsPrec :: Int -> IndexFormat -> ShowS # show :: IndexFormat -> String # showList :: [IndexFormat] -> ShowS # | |
| ToRaw IndexFormat WGPUIndexFormat Source # | Convert an |
Defined in WGPU.Internal.Multipurpose Methods raw :: IndexFormat -> ContT r IO WGPUIndexFormat Source # | |