Skip to content

GPUBindGroupLayoutEntry

Describes one binding's index, shader visibility, and resource-specific layout.

Properties

binding

abstract val binding: GPUIndex32
A unique identifier for a resource binding within the GPUBindGroupLayout, corresponding to a GPUBindGroupEntry.binding and a @binding attribute in the GPUShaderModule.

buffer

Exactly one of these members must be set, indicating the binding type. The contents of the member specify options specific to that type. The corresponding resource in createBindGroup() requires the corresponding binding resource type for this binding.

sampler

Exactly one of these members must be set, indicating the binding type. The contents of the member specify options specific to that type. The corresponding resource in createBindGroup() requires the corresponding binding resource type for this binding.

storageTexture

Exactly one of these members must be set, indicating the binding type. The contents of the member specify options specific to that type. The corresponding resource in createBindGroup() requires the corresponding binding resource type for this binding.

texture

Exactly one of these members must be set, indicating the binding type. The contents of the member specify options specific to that type. The corresponding resource in createBindGroup() requires the corresponding binding resource type for this binding.

visibility

abstract val visibility: GPUShaderStage
A bitset of the members of GPUShaderStage. Each set bit indicates that a GPUBindGroupLayoutEntry’s resource will be accessible from the associated shader stage.