Optional
index?: numberThe index of the bind group. This is used to determine which bind group to use in a shader (denoted by the value of the group directive).
e.g.
@group(0) @binding(0) var tex: texture_2d<f32>;
@group(0) @binding(1) var texSampler: sampler;
would have an index of 0.
Optional
label?: stringOptional
layout?: GPUBindGroupLayoutThe GPUBindGroupLayout that describes the bindings in this bind group. If not set, a bind group layout will be generated from the resources in this bind group.
Generated using TypeDoc
BindGroup constructor parameters