BindGroupLayoutEntry


class BindGroupLayoutEntry


A single entry within a bind group layout, defining a resource binding slot.

Summary

Public constructors

BindGroupLayoutEntry(
    binding: Int,
    visibility: Int,
    bindingArraySize: Int,
    buffer: BufferBindingLayout,
    sampler: SamplerBindingLayout,
    texture: TextureBindingLayout,
    storageTexture: StorageTextureBindingLayout
)

Public properties

Int

The binding index corresponding to a @binding attribute in the shader.

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

Added in 1.0.0-alpha01
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

Added in 1.0.0-alpha01
var bindingInt

The binding index corresponding to a @binding attribute in the shader.

bindingArraySize

Added in 1.0.0-alpha01
var bindingArraySizeInt

buffer

Added in 1.0.0-alpha01
var bufferBufferBindingLayout

The required constraints if the binding is a buffer.

sampler

Added in 1.0.0-alpha01
var samplerSamplerBindingLayout

The required constraints if the binding is a sampler.

texture

Added in 1.0.0-alpha01
var textureTextureBindingLayout

The required constraints if the binding is a sampled texture.

visibility

Added in 1.0.0-alpha01
var visibilityInt

The shader stages where this binding is visible.