GPUBindGroupLayoutEntry¶
interface GPUBindGroupLayoutEntry
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¶
abstract val buffer: GPUBufferBindingLayout?
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¶
abstract val sampler: GPUSamplerBindingLayout?
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¶
abstract val storageTexture: GPUStorageTextureBindingLayout?
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¶
abstract val texture: GPUTextureBindingLayout?
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.