| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
WGPU.Internal.Binding
Description
Synopsis
- newtype BindGroup = BindGroup {}
- data BindGroupDescriptor = BindGroupDescriptor {}
- data BindGroupEntry = BindGroupEntry {
- binding :: !Binding
- resource :: !BindingResource
- 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
- data BindingResource
- data BufferBinding = BufferBinding {}
- createBindGroup :: MonadIO m => Device -> BindGroupDescriptor -> m BindGroup
- createBindGroupLayout :: MonadIO m => Device -> BindGroupLayoutDescriptor -> m BindGroupLayout
Types
Binding group.
Represents the set of resources bound to the bindings described by a
BindGroupLayout.
Constructors
| BindGroup | |
Fields | |
data BindGroupDescriptor Source #
Describes a BindGroup.
Constructors
| BindGroupDescriptor | |
Fields | |
Instances
| Eq BindGroupDescriptor Source # | |
Defined in WGPU.Internal.Binding Methods (==) :: BindGroupDescriptor -> BindGroupDescriptor -> Bool # (/=) :: BindGroupDescriptor -> BindGroupDescriptor -> Bool # | |
| Show BindGroupDescriptor Source # | |
Defined in WGPU.Internal.Binding Methods showsPrec :: Int -> BindGroupDescriptor -> ShowS # show :: BindGroupDescriptor -> String # showList :: [BindGroupDescriptor] -> ShowS # | |
| ToRaw BindGroupDescriptor WGPUBindGroupDescriptor Source # | |
Defined in WGPU.Internal.Binding Methods raw :: BindGroupDescriptor -> ContT r IO WGPUBindGroupDescriptor Source # | |
data BindGroupEntry Source #
Entry in a bind group.
Constructors
| BindGroupEntry | |
Fields
| |
Instances
| Eq BindGroupEntry Source # | |
Defined in WGPU.Internal.Binding Methods (==) :: BindGroupEntry -> BindGroupEntry -> Bool # (/=) :: BindGroupEntry -> BindGroupEntry -> Bool # | |
| Show BindGroupEntry Source # | |
Defined in WGPU.Internal.Binding Methods showsPrec :: Int -> BindGroupEntry -> ShowS # show :: BindGroupEntry -> String # showList :: [BindGroupEntry] -> ShowS # | |
| ToRaw BindGroupEntry WGPUBindGroupEntry Source # | |
Defined in WGPU.Internal.Binding Methods raw :: BindGroupEntry -> ContT r IO WGPUBindGroupEntry Source # | |
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 r 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 r 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 r 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 # | |
| Default ShaderStage Source # | |
Defined in WGPU.Internal.Binding Methods def :: ShaderStage # | |
| ToRaw ShaderStage WGPUShaderStageFlags Source # | |
Defined in WGPU.Internal.Binding Methods raw :: ShaderStage -> ContT r 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 r 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 r 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 r 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 r 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 r 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 r 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 r IO WGPUBufferBindingType Source # | |
data BindingResource Source #
Resource that can be bound to a pipeline.
Constructors
| BindingResourceBuffer !BufferBinding | |
| BindingResourceSampler !Sampler | |
| BindingResourceTextureView !TextureView |
Instances
| Eq BindingResource Source # | |
Defined in WGPU.Internal.Binding Methods (==) :: BindingResource -> BindingResource -> Bool # (/=) :: BindingResource -> BindingResource -> Bool # | |
| Show BindingResource Source # | |
Defined in WGPU.Internal.Binding Methods showsPrec :: Int -> BindingResource -> ShowS # show :: BindingResource -> String # showList :: [BindingResource] -> ShowS # | |
data BufferBinding Source #
A buffer binding.
Constructors
| BufferBinding | |
Fields
| |
Instances
| Eq BufferBinding Source # | |
Defined in WGPU.Internal.Binding Methods (==) :: BufferBinding -> BufferBinding -> Bool # (/=) :: BufferBinding -> BufferBinding -> Bool # | |
| Show BufferBinding Source # | |
Defined in WGPU.Internal.Binding Methods showsPrec :: Int -> BufferBinding -> ShowS # show :: BufferBinding -> String # showList :: [BufferBinding] -> ShowS # | |
Functions
Arguments
| :: MonadIO m | |
| => Device | Device for which to create the bind group. |
| -> BindGroupDescriptor | Description of the bind group. |
| -> m BindGroup | Action to create the bind group. |
Create a bind group.
createBindGroupLayout Source #
Arguments
| :: MonadIO m | |
| => Device | The device for which the bind group layout will be created. |
| -> BindGroupLayoutDescriptor | Description of the bind group layout. |
| -> m BindGroupLayout | MonadIO action that creates a bind group layout. |
Creates a BindGroupLayout.