Type alias BindGroupOptions

BindGroupOptions: {
    index?: number;
    label?: string;
    layout?: GPUBindGroupLayout;
}

BindGroup constructor parameters

Type declaration

  • Optional index?: number

    The 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?: string
  • Optional layout?: GPUBindGroupLayout

    The 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