Interface GPUBindGroupLayoutEntry
binding: number;
buffer?: GPUBufferBindingLayout;
externalTexture?: GPUExternalTextureBindingLayout;
sampler?: GPUSamplerBindingLayout;
storageTexture?: GPUStorageTextureBindingLayout;
texture?: GPUTextureBindingLayout;
visibility: number;
}
Index
Properties
binding
Binding
attribute in the GPUShaderModule.
Optionalbuffer
When map/exist|provided, indicates the binding resource type for this GPUBindGroupLayoutEntry is GPUBufferBinding.
OptionalexternalTexture
When map/exist|provided, indicates the binding resource type for this GPUBindGroupLayoutEntry is GPUExternalTexture.
Optionalsampler
When map/exist|provided, indicates the binding resource type for this GPUBindGroupLayoutEntry is GPUSampler.
OptionalstorageTexture
When map/exist|provided, indicates the binding resource type for this GPUBindGroupLayoutEntry is GPUTextureView.
Optionaltexture
When map/exist|provided, indicates the binding resource type for this GPUBindGroupLayoutEntry is GPUTextureView.
visibility
A bitset of the members of GPUShaderStage. Each set bit indicates that a GPUBindGroupLayoutEntry's resource will be accessible from the associated shader stage.
A unique identifier for a resource binding within the GPUBindGroupLayout, corresponding to a GPUBindGroupEntry.binding and a