BindGroupLayoutEntry
class BindGroupLayoutEntry
A single entry within a bind group layout, defining a resource binding slot.
Summary
Public constructors |
|---|
BindGroupLayoutEntry( |
Public properties |
|
|---|---|
Int |
The binding index corresponding to a |
Int |
|
BufferBindingLayout |
The required constraints if the binding is a buffer. |
SamplerBindingLayout |
The required constraints if the binding is a sampler. |
StorageTextureBindingLayout |
|
TextureBindingLayout |
The required constraints if the binding is a sampled texture. |
Int |
The shader stages where this binding is visible. |
Public constructors
BindGroupLayoutEntry
BindGroupLayoutEntry(
binding: Int,
visibility: Int,
bindingArraySize: Int = 0,
buffer: BufferBindingLayout = BufferBindingLayout(type = BufferBindingType.BindingNotUsed),
sampler: SamplerBindingLayout = SamplerBindingLayout(type = SamplerBindingType.BindingNotUsed),
texture: TextureBindingLayout = TextureBindingLayout( sampleType = TextureSampleType.BindingNotUsed, viewDimension = TextureViewDimension.Undefined, ),
storageTexture: StorageTextureBindingLayout = StorageTextureBindingLayout( access = StorageTextureAccess.BindingNotUsed, format = TextureFormat.Undefined, viewDimension = TextureViewDimension.Undefined, )
)
Public properties
binding
var binding: Int
The binding index corresponding to a @binding attribute in the shader.
buffer
var buffer: BufferBindingLayout
The required constraints if the binding is a buffer.
sampler
var sampler: SamplerBindingLayout
The required constraints if the binding is a sampler.
texture
var texture: TextureBindingLayout
The required constraints if the binding is a sampled texture.
visibility
var visibility: Int
The shader stages where this binding is visible.