GPUBindGroupLayoutEntry


class GPUBindGroupLayoutEntry


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

Summary

Public constructors

GPUBindGroupLayoutEntry(
    binding: Int,
    visibility: Int,
    bindingArraySize: Int,
    buffer: GPUBufferBindingLayout,
    sampler: GPUSamplerBindingLayout,
    texture: GPUTextureBindingLayout,
    storageTexture: GPUStorageTextureBindingLayout
)

Public properties

Int

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

Int
GPUBufferBindingLayout

The required constraints if the binding is a buffer.

GPUSamplerBindingLayout

The required constraints if the binding is a sampler.

GPUStorageTextureBindingLayout
GPUTextureBindingLayout

The required constraints if the binding is a sampled texture.

Int

The shader stages where this binding is visible.

Public constructors

GPUBindGroupLayoutEntry

Added in 1.0.0-alpha02
GPUBindGroupLayoutEntry(
    binding: Int,
    visibility: Int,
    bindingArraySize: Int = 0,
    buffer: GPUBufferBindingLayout = GPUBufferBindingLayout(type = BufferBindingType.BindingNotUsed),
    sampler: GPUSamplerBindingLayout = GPUSamplerBindingLayout(type = SamplerBindingType.BindingNotUsed),
    texture: GPUTextureBindingLayout = GPUTextureBindingLayout( sampleType = TextureSampleType.BindingNotUsed, viewDimension = TextureViewDimension.Undefined, ),
    storageTexture: GPUStorageTextureBindingLayout = GPUStorageTextureBindingLayout( access = StorageTextureAccess.BindingNotUsed, format = TextureFormat.Undefined, viewDimension = TextureViewDimension.Undefined, )
)

Public properties

binding

Added in 1.0.0-alpha02
var bindingInt

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

bindingArraySize

Added in 1.0.0-alpha02
var bindingArraySizeInt

buffer

Added in 1.0.0-alpha02
var bufferGPUBufferBindingLayout

The required constraints if the binding is a buffer.

sampler

Added in 1.0.0-alpha02
var samplerGPUSamplerBindingLayout

The required constraints if the binding is a sampler.

texture

Added in 1.0.0-alpha02
var textureGPUTextureBindingLayout

The required constraints if the binding is a sampled texture.

visibility

Added in 1.0.0-alpha02
var visibilityInt

The shader stages where this binding is visible.