Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
.
data BindGroupDescriptor Source #
Describes a BindGroup
.
Instances
Eq BindGroupDescriptor Source # | |
Defined in WGPU.Internal.Binding (==) :: BindGroupDescriptor -> BindGroupDescriptor -> Bool # (/=) :: BindGroupDescriptor -> BindGroupDescriptor -> Bool # | |
Show BindGroupDescriptor Source # | |
Defined in WGPU.Internal.Binding showsPrec :: Int -> BindGroupDescriptor -> ShowS # show :: BindGroupDescriptor -> String # showList :: [BindGroupDescriptor] -> ShowS # | |
ToRaw BindGroupDescriptor WGPUBindGroupDescriptor Source # | |
Defined in WGPU.Internal.Binding |
data BindGroupEntry Source #
Entry in a bind group.
Instances
Eq BindGroupEntry Source # | |
Defined in WGPU.Internal.Binding (==) :: BindGroupEntry -> BindGroupEntry -> Bool # (/=) :: BindGroupEntry -> BindGroupEntry -> Bool # | |
Show BindGroupEntry Source # | |
Defined in WGPU.Internal.Binding showsPrec :: Int -> BindGroupEntry -> ShowS # show :: BindGroupEntry -> String # showList :: [BindGroupEntry] -> ShowS # | |
ToRaw BindGroupEntry WGPUBindGroupEntry Source # | |
Defined in WGPU.Internal.Binding 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.
Instances
Eq BindGroupLayout Source # | |
Defined in WGPU.Internal.Binding (==) :: BindGroupLayout -> BindGroupLayout -> Bool # (/=) :: BindGroupLayout -> BindGroupLayout -> Bool # | |
Show BindGroupLayout Source # | |
Defined in WGPU.Internal.Binding showsPrec :: Int -> BindGroupLayout -> ShowS # show :: BindGroupLayout -> String # showList :: [BindGroupLayout] -> ShowS # | |
ToRaw BindGroupLayout WGPUBindGroupLayout Source # | |
Defined in WGPU.Internal.Binding raw :: BindGroupLayout -> ContT r IO WGPUBindGroupLayout Source # |
data BindGroupLayoutDescriptor Source #
Describes a BindGroupLayout
.
BindGroupLayoutDescriptor | |
|
Instances
Eq BindGroupLayoutDescriptor Source # | |
Defined in WGPU.Internal.Binding | |
Show BindGroupLayoutDescriptor Source # | |
Defined in WGPU.Internal.Binding showsPrec :: Int -> BindGroupLayoutDescriptor -> ShowS # show :: BindGroupLayoutDescriptor -> String # showList :: [BindGroupLayoutDescriptor] -> ShowS # | |
ToRaw BindGroupLayoutDescriptor WGPUBindGroupLayoutDescriptor Source # | |
Defined in WGPU.Internal.Binding |
data BindGroupLayoutEntry Source #
Describes a single binding inside a bind group.
BindGroupLayoutEntry | |
|
Instances
Eq BindGroupLayoutEntry Source # | |
Defined in WGPU.Internal.Binding (==) :: BindGroupLayoutEntry -> BindGroupLayoutEntry -> Bool # (/=) :: BindGroupLayoutEntry -> BindGroupLayoutEntry -> Bool # | |
Show BindGroupLayoutEntry Source # | |
Defined in WGPU.Internal.Binding showsPrec :: Int -> BindGroupLayoutEntry -> ShowS # show :: BindGroupLayoutEntry -> String # showList :: [BindGroupLayoutEntry] -> ShowS # | |
ToRaw BindGroupLayoutEntry WGPUBindGroupLayoutEntry Source # | |
Defined in WGPU.Internal.Binding |
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.
ShaderStage | |
|
Instances
Eq ShaderStage Source # | |
Defined in WGPU.Internal.Binding (==) :: ShaderStage -> ShaderStage -> Bool # (/=) :: ShaderStage -> ShaderStage -> Bool # | |
Show ShaderStage Source # | |
Defined in WGPU.Internal.Binding showsPrec :: Int -> ShaderStage -> ShowS # show :: ShaderStage -> String # showList :: [ShaderStage] -> ShowS # | |
Default ShaderStage Source # | |
Defined in WGPU.Internal.Binding def :: ShaderStage # | |
ToRaw ShaderStage WGPUShaderStageFlags Source # | |
Defined in WGPU.Internal.Binding raw :: ShaderStage -> ContT r IO WGPUShaderStageFlags Source # |
data BindingType Source #
Specifies type of a binding.
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 (==) :: BindingType -> BindingType -> Bool # (/=) :: BindingType -> BindingType -> Bool # | |
Show BindingType Source # | |
Defined in WGPU.Internal.Binding showsPrec :: Int -> BindingType -> ShowS # show :: BindingType -> String # showList :: [BindingType] -> ShowS # |
data BufferBindingLayout Source #
A buffer binding.
BufferBindingLayout | |
|
Instances
Eq BufferBindingLayout Source # | |
Defined in WGPU.Internal.Binding (==) :: BufferBindingLayout -> BufferBindingLayout -> Bool # (/=) :: BufferBindingLayout -> BufferBindingLayout -> Bool # | |
Show BufferBindingLayout Source # | |
Defined in WGPU.Internal.Binding showsPrec :: Int -> BufferBindingLayout -> ShowS # show :: BufferBindingLayout -> String # showList :: [BufferBindingLayout] -> ShowS # | |
ToRaw BufferBindingLayout WGPUBufferBindingLayout Source # | |
Defined in WGPU.Internal.Binding |
data SamplerBindingLayout Source #
A sampler binding that can be used to sample a texture.
Instances
Eq SamplerBindingLayout Source # | |
Defined in WGPU.Internal.Binding (==) :: SamplerBindingLayout -> SamplerBindingLayout -> Bool # (/=) :: SamplerBindingLayout -> SamplerBindingLayout -> Bool # | |
Show SamplerBindingLayout Source # | |
Defined in WGPU.Internal.Binding showsPrec :: Int -> SamplerBindingLayout -> ShowS # show :: SamplerBindingLayout -> String # showList :: [SamplerBindingLayout] -> ShowS # | |
ToRaw SamplerBindingLayout WGPUSamplerBindingLayout Source # | |
Defined in WGPU.Internal.Binding |
data TextureBindingLayout Source #
A texture binding.
TextureBindingLayout | |
|
Instances
Eq TextureBindingLayout Source # | |
Defined in WGPU.Internal.Binding (==) :: TextureBindingLayout -> TextureBindingLayout -> Bool # (/=) :: TextureBindingLayout -> TextureBindingLayout -> Bool # | |
Show TextureBindingLayout Source # | |
Defined in WGPU.Internal.Binding showsPrec :: Int -> TextureBindingLayout -> ShowS # show :: TextureBindingLayout -> String # showList :: [TextureBindingLayout] -> ShowS # | |
ToRaw TextureBindingLayout WGPUTextureBindingLayout Source # | |
Defined in WGPU.Internal.Binding |
data StorageTextureBindingLayout Source #
A storage texture binding.
StorageTextureBindingLayout | |
|
Instances
data StorageTextureAccess Source #
Specific method of allowed access to a storage texture.
Instances
Eq StorageTextureAccess Source # | |
Defined in WGPU.Internal.Binding (==) :: StorageTextureAccess -> StorageTextureAccess -> Bool # (/=) :: StorageTextureAccess -> StorageTextureAccess -> Bool # | |
Show StorageTextureAccess Source # | |
Defined in WGPU.Internal.Binding showsPrec :: Int -> StorageTextureAccess -> ShowS # show :: StorageTextureAccess -> String # showList :: [StorageTextureAccess] -> ShowS # | |
ToRaw StorageTextureAccess WGPUStorageTextureAccess Source # | |
Defined in WGPU.Internal.Binding |
data TextureSampleType Source #
Specific type of a sample in a texture binding.
TextureSampleTypeFloat | |
| |
TextureSampleTypeDepth | |
TextureSampleTypeSignedInt | |
TextureSampleTypeUnsignedInt |
Instances
Eq TextureSampleType Source # | |
Defined in WGPU.Internal.Binding (==) :: TextureSampleType -> TextureSampleType -> Bool # (/=) :: TextureSampleType -> TextureSampleType -> Bool # | |
Show TextureSampleType Source # | |
Defined in WGPU.Internal.Binding showsPrec :: Int -> TextureSampleType -> ShowS # show :: TextureSampleType -> String # showList :: [TextureSampleType] -> ShowS # | |
ToRaw TextureSampleType WGPUTextureSampleType Source # | |
Defined in WGPU.Internal.Binding 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 (==) :: BufferBindingType -> BufferBindingType -> Bool # (/=) :: BufferBindingType -> BufferBindingType -> Bool # | |
Show BufferBindingType Source # | |
Defined in WGPU.Internal.Binding showsPrec :: Int -> BufferBindingType -> ShowS # show :: BufferBindingType -> String # showList :: [BufferBindingType] -> ShowS # | |
ToRaw BufferBindingType WGPUBufferBindingType Source # | |
Defined in WGPU.Internal.Binding raw :: BufferBindingType -> ContT r IO WGPUBufferBindingType Source # |
data BindingResource Source #
Resource that can be bound to a pipeline.
BindingResourceBuffer !BufferBinding | |
BindingResourceSampler !Sampler | |
BindingResourceTextureView !TextureView |
Instances
Eq BindingResource Source # | |
Defined in WGPU.Internal.Binding (==) :: BindingResource -> BindingResource -> Bool # (/=) :: BindingResource -> BindingResource -> Bool # | |
Show BindingResource Source # | |
Defined in WGPU.Internal.Binding showsPrec :: Int -> BindingResource -> ShowS # show :: BindingResource -> String # showList :: [BindingResource] -> ShowS # |
data BufferBinding Source #
A buffer binding.
Instances
Eq BufferBinding Source # | |
Defined in WGPU.Internal.Binding (==) :: BufferBinding -> BufferBinding -> Bool # (/=) :: BufferBinding -> BufferBinding -> Bool # | |
Show BufferBinding Source # | |
Defined in WGPU.Internal.Binding showsPrec :: Int -> BufferBinding -> ShowS # show :: BufferBinding -> String # showList :: [BufferBinding] -> ShowS # |
Functions
:: 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 #
:: 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
.