| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
WGPU.Internal.Binding
Description
Synopsis
- newtype BindGroupLayout = BindGroupLayout {}
- data BindGroupLayoutDescriptor = BindGroupLayoutDescriptor {}
- data BindGroupLayoutEntry = BindGroupLayoutEntry {}
- newtype Binding = Binding {}
- data ShaderStage = ShaderStage {
- stageVertex :: !Bool
- stageFragment :: !Bool
- stageCompute :: !Bool
- data BindingType
- data BufferBindingLayout = BufferBindingLayout {}
- data SamplerBindingLayout
- data TextureBindingLayout = TextureBindingLayout {}
- data StorageTextureBindingLayout = StorageTextureBindingLayout {}
- data StorageTextureAccess
- data TextureSampleType
- data BufferBindingType
- createBindGroupLayout :: Device -> BindGroupLayoutDescriptor -> IO BindGroupLayout
Types
newtype BindGroupLayout Source #
Handle to a binding group layout.
A BindGroupLayout is a handle to the GPU-side layout of a binding group.
Constructors
| BindGroupLayout | |
Fields | |
Instances
| Eq BindGroupLayout Source # | |
Defined in WGPU.Internal.Binding Methods (==) :: BindGroupLayout -> BindGroupLayout -> Bool # (/=) :: BindGroupLayout -> BindGroupLayout -> Bool # | |
| Show BindGroupLayout Source # | |
Defined in WGPU.Internal.Binding Methods showsPrec :: Int -> BindGroupLayout -> ShowS # show :: BindGroupLayout -> String # showList :: [BindGroupLayout] -> ShowS # | |
| ToRaw BindGroupLayout WGPUBindGroupLayout Source # | |
Defined in WGPU.Internal.Binding Methods raw :: BindGroupLayout -> ContT c IO WGPUBindGroupLayout Source # | |
data BindGroupLayoutDescriptor Source #
Describes a BindGroupLayout.
Constructors
| BindGroupLayoutDescriptor | |
Fields
| |
Instances
| Eq BindGroupLayoutDescriptor Source # | |
Defined in WGPU.Internal.Binding Methods (==) :: BindGroupLayoutDescriptor -> BindGroupLayoutDescriptor -> Bool # (/=) :: BindGroupLayoutDescriptor -> BindGroupLayoutDescriptor -> Bool # | |
| Show BindGroupLayoutDescriptor Source # | |
Defined in WGPU.Internal.Binding Methods showsPrec :: Int -> BindGroupLayoutDescriptor -> ShowS # show :: BindGroupLayoutDescriptor -> String # showList :: [BindGroupLayoutDescriptor] -> ShowS # | |
| ToRaw BindGroupLayoutDescriptor WGPUBindGroupLayoutDescriptor Source # | |
Defined in WGPU.Internal.Binding Methods raw :: BindGroupLayoutDescriptor -> ContT c IO WGPUBindGroupLayoutDescriptor Source # | |
data BindGroupLayoutEntry Source #
Describes a single binding inside a bind group.
Constructors
| BindGroupLayoutEntry | |
Fields
| |
Instances
| Eq BindGroupLayoutEntry Source # | |
Defined in WGPU.Internal.Binding Methods (==) :: BindGroupLayoutEntry -> BindGroupLayoutEntry -> Bool # (/=) :: BindGroupLayoutEntry -> BindGroupLayoutEntry -> Bool # | |
| Show BindGroupLayoutEntry Source # | |
Defined in WGPU.Internal.Binding Methods showsPrec :: Int -> BindGroupLayoutEntry -> ShowS # show :: BindGroupLayoutEntry -> String # showList :: [BindGroupLayoutEntry] -> ShowS # | |
| ToRaw BindGroupLayoutEntry WGPUBindGroupLayoutEntry Source # | |
Defined in WGPU.Internal.Binding Methods raw :: BindGroupLayoutEntry -> ContT c IO WGPUBindGroupLayoutEntry Source # | |
Binding index.
This must match a shader index, and be unique inside a binding group layout.
data ShaderStage Source #
Describes the shader stages from which a binding will be visible.
Constructors
| ShaderStage | |
Fields
| |
Instances
| Eq ShaderStage Source # | |
Defined in WGPU.Internal.Binding | |
| Show ShaderStage Source # | |
Defined in WGPU.Internal.Binding Methods showsPrec :: Int -> ShaderStage -> ShowS # show :: ShaderStage -> String # showList :: [ShaderStage] -> ShowS # | |
| ToRaw ShaderStage WGPUShaderStageFlags Source # | |
Defined in WGPU.Internal.Binding Methods raw :: ShaderStage -> ContT c IO WGPUShaderStageFlags Source # | |
data BindingType Source #
Specifies type of a binding.
Constructors
| BindingTypeBuffer !BufferBindingLayout | A buffer binding. |
| BindingTypeSampler !SamplerBindingLayout | A sampler that can be used to sample a texture. |
| BindingTypeTexture !TextureBindingLayout | A texture binding. |
| BindingTypeStorageTexture !StorageTextureBindingLayout | A storage texture. |
Instances
| Eq BindingType Source # | |
Defined in WGPU.Internal.Binding | |
| Show BindingType Source # | |
Defined in WGPU.Internal.Binding Methods showsPrec :: Int -> BindingType -> ShowS # show :: BindingType -> String # showList :: [BindingType] -> ShowS # | |
data BufferBindingLayout Source #
A buffer binding.
Constructors
| BufferBindingLayout | |
Fields
| |
Instances
| Eq BufferBindingLayout Source # | |
Defined in WGPU.Internal.Binding Methods (==) :: BufferBindingLayout -> BufferBindingLayout -> Bool # (/=) :: BufferBindingLayout -> BufferBindingLayout -> Bool # | |
| Show BufferBindingLayout Source # | |
Defined in WGPU.Internal.Binding Methods showsPrec :: Int -> BufferBindingLayout -> ShowS # show :: BufferBindingLayout -> String # showList :: [BufferBindingLayout] -> ShowS # | |
| ToRaw BufferBindingLayout WGPUBufferBindingLayout Source # | |
Defined in WGPU.Internal.Binding Methods raw :: BufferBindingLayout -> ContT c IO WGPUBufferBindingLayout Source # | |
data SamplerBindingLayout Source #
A sampler binding that can be used to sample a texture.
Constructors
| SamplerBindingLayoutFiltering | |
| SamplerBindingLayoutNonFiltering | |
| SamplerBindingLayoutComparison |
Instances
| Eq SamplerBindingLayout Source # | |
Defined in WGPU.Internal.Binding Methods (==) :: SamplerBindingLayout -> SamplerBindingLayout -> Bool # (/=) :: SamplerBindingLayout -> SamplerBindingLayout -> Bool # | |
| Show SamplerBindingLayout Source # | |
Defined in WGPU.Internal.Binding Methods showsPrec :: Int -> SamplerBindingLayout -> ShowS # show :: SamplerBindingLayout -> String # showList :: [SamplerBindingLayout] -> ShowS # | |
| ToRaw SamplerBindingLayout WGPUSamplerBindingLayout Source # | |
Defined in WGPU.Internal.Binding Methods raw :: SamplerBindingLayout -> ContT c IO WGPUSamplerBindingLayout Source # | |
data TextureBindingLayout Source #
A texture binding.
Constructors
| TextureBindingLayout | |
Fields
| |
Instances
| Eq TextureBindingLayout Source # | |
Defined in WGPU.Internal.Binding Methods (==) :: TextureBindingLayout -> TextureBindingLayout -> Bool # (/=) :: TextureBindingLayout -> TextureBindingLayout -> Bool # | |
| Show TextureBindingLayout Source # | |
Defined in WGPU.Internal.Binding Methods showsPrec :: Int -> TextureBindingLayout -> ShowS # show :: TextureBindingLayout -> String # showList :: [TextureBindingLayout] -> ShowS # | |
| ToRaw TextureBindingLayout WGPUTextureBindingLayout Source # | |
Defined in WGPU.Internal.Binding Methods raw :: TextureBindingLayout -> ContT c IO WGPUTextureBindingLayout Source # | |
data StorageTextureBindingLayout Source #
A storage texture binding.
Constructors
| StorageTextureBindingLayout | |
Fields
| |
Instances
| Eq StorageTextureBindingLayout Source # | |
Defined in WGPU.Internal.Binding Methods (==) :: StorageTextureBindingLayout -> StorageTextureBindingLayout -> Bool # (/=) :: StorageTextureBindingLayout -> StorageTextureBindingLayout -> Bool # | |
| Show StorageTextureBindingLayout Source # | |
Defined in WGPU.Internal.Binding Methods showsPrec :: Int -> StorageTextureBindingLayout -> ShowS # show :: StorageTextureBindingLayout -> String # showList :: [StorageTextureBindingLayout] -> ShowS # | |
| ToRaw StorageTextureBindingLayout WGPUStorageTextureBindingLayout Source # | |
Defined in WGPU.Internal.Binding Methods raw :: StorageTextureBindingLayout -> ContT c IO WGPUStorageTextureBindingLayout Source # | |
data StorageTextureAccess Source #
Specific method of allowed access to a storage texture.
Constructors
| StorageTextureAccessReadOnly | |
| StorageTextureAccessWriteOnly | |
| StorageTextureAccessReadWrite |
Instances
| Eq StorageTextureAccess Source # | |
Defined in WGPU.Internal.Binding Methods (==) :: StorageTextureAccess -> StorageTextureAccess -> Bool # (/=) :: StorageTextureAccess -> StorageTextureAccess -> Bool # | |
| Show StorageTextureAccess Source # | |
Defined in WGPU.Internal.Binding Methods showsPrec :: Int -> StorageTextureAccess -> ShowS # show :: StorageTextureAccess -> String # showList :: [StorageTextureAccess] -> ShowS # | |
| ToRaw StorageTextureAccess WGPUStorageTextureAccess Source # | |
Defined in WGPU.Internal.Binding Methods raw :: StorageTextureAccess -> ContT c IO WGPUStorageTextureAccess Source # | |
data TextureSampleType Source #
Specific type of a sample in a texture binding.
Constructors
| TextureSampleTypeFloat | |
Fields
| |
| TextureSampleTypeDepth | |
| TextureSampleTypeSignedInt | |
| TextureSampleTypeUnsignedInt | |
Instances
| Eq TextureSampleType Source # | |
Defined in WGPU.Internal.Binding Methods (==) :: TextureSampleType -> TextureSampleType -> Bool # (/=) :: TextureSampleType -> TextureSampleType -> Bool # | |
| Show TextureSampleType Source # | |
Defined in WGPU.Internal.Binding Methods showsPrec :: Int -> TextureSampleType -> ShowS # show :: TextureSampleType -> String # showList :: [TextureSampleType] -> ShowS # | |
| ToRaw TextureSampleType WGPUTextureSampleType Source # | |
Defined in WGPU.Internal.Binding Methods raw :: TextureSampleType -> ContT c IO WGPUTextureSampleType Source # | |
data BufferBindingType Source #
Specific type of a buffer binding.
Instances
| Eq BufferBindingType Source # | |
Defined in WGPU.Internal.Binding Methods (==) :: BufferBindingType -> BufferBindingType -> Bool # (/=) :: BufferBindingType -> BufferBindingType -> Bool # | |
| Show BufferBindingType Source # | |
Defined in WGPU.Internal.Binding Methods showsPrec :: Int -> BufferBindingType -> ShowS # show :: BufferBindingType -> String # showList :: [BufferBindingType] -> ShowS # | |
| ToRaw BufferBindingType WGPUBufferBindingType Source # | |
Defined in WGPU.Internal.Binding Methods raw :: BufferBindingType -> ContT c IO WGPUBufferBindingType Source # | |
Functions
createBindGroupLayout Source #
Arguments
| :: Device | The device for which the bind group layout will be created. |
| -> BindGroupLayoutDescriptor | Description of the bind group layout. |
| -> IO BindGroupLayout | IO action that creates a bind group layout. |
Creates a BindGroupLayout.