Safe Haskell | None |
---|---|
Language | Haskell2010 |
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.
Texture | |
|
data CompareFunction Source #
Comparison function used for depth and stencil operations.
CompareFunctionNever | |
CompareFunctionLess | |
CompareFunctionEqual | |
CompareFunctionLessEqual | |
CompareFunctionGreater | |
CompareFunctionNotEqual | |
CompareFunctionGreaterEqual | |
CompareFunctionAlways |
Instances
Eq CompareFunction Source # | |
Defined in WGPU.Internal.Multipurpose (==) :: CompareFunction -> CompareFunction -> Bool # (/=) :: CompareFunction -> CompareFunction -> Bool # | |
Show CompareFunction Source # | |
Defined in WGPU.Internal.Multipurpose showsPrec :: Int -> CompareFunction -> ShowS # show :: CompareFunction -> String # showList :: [CompareFunction] -> ShowS # | |
ToRaw CompareFunction WGPUCompareFunction Source # | Convert a |
Defined in WGPU.Internal.Multipurpose raw :: CompareFunction -> ContT r IO WGPUCompareFunction Source # |
Origin of a copy to/from a texture.
Extent of a texture or texture-related operation.
data TextureAspect Source #
Kind of data a texture holds.
Instances
Eq TextureAspect Source # | |
Defined in WGPU.Internal.Multipurpose (==) :: TextureAspect -> TextureAspect -> Bool # (/=) :: TextureAspect -> TextureAspect -> Bool # | |
Show TextureAspect Source # | |
Defined in WGPU.Internal.Multipurpose showsPrec :: Int -> TextureAspect -> ShowS # show :: TextureAspect -> String # showList :: [TextureAspect] -> ShowS # | |
ToRaw TextureAspect WGPUTextureAspect Source # | |
Defined in WGPU.Internal.Multipurpose raw :: TextureAspect -> ContT r IO WGPUTextureAspect Source # |
data ImageCopyTexture Source #
View of a texture which can be used to copy tofrom a buffertexture.
Instances
data TextureDataLayout Source #
Layout of a texture in a buffer's memory.
TextureDataLayout | |
|
Instances
Eq TextureDataLayout Source # | |
Defined in WGPU.Internal.Multipurpose (==) :: TextureDataLayout -> TextureDataLayout -> Bool # (/=) :: TextureDataLayout -> TextureDataLayout -> Bool # | |
Show TextureDataLayout Source # | |
Defined in WGPU.Internal.Multipurpose showsPrec :: Int -> TextureDataLayout -> ShowS # show :: TextureDataLayout -> String # showList :: [TextureDataLayout] -> ShowS # | |
ToRaw TextureDataLayout WGPUTextureDataLayout Source # | |
Defined in WGPU.Internal.Multipurpose raw :: TextureDataLayout -> ContT r IO WGPUTextureDataLayout Source # |
data IndexFormat Source #
Format of indices used within a pipeline.
IndexFormatUint16 | Indices are 16-bit unsigned integers ( |
IndexFormatUint32 | Indices are 32-bit unsigned integers ( |
Instances
Eq IndexFormat Source # | |
Defined in WGPU.Internal.Multipurpose (==) :: IndexFormat -> IndexFormat -> Bool # (/=) :: IndexFormat -> IndexFormat -> Bool # | |
Show IndexFormat Source # | |
Defined in WGPU.Internal.Multipurpose showsPrec :: Int -> IndexFormat -> ShowS # show :: IndexFormat -> String # showList :: [IndexFormat] -> ShowS # | |
ToRaw IndexFormat WGPUIndexFormat Source # | Convert an |
Defined in WGPU.Internal.Multipurpose raw :: IndexFormat -> ContT r IO WGPUIndexFormat Source # |