An object defining all possible BindGroup class instancing parameters

interface BindGroupParams {
    uniforms?: ReadOnlyInputBindings;
    storages?: ReadWriteInputBindings;
    bindings?: BindGroupBindingElement[];
    label?: string;
    index?: number;
}

Hierarchy (view full)

Properties

uniforms input to pass to a BindGroup

read only or read/write storages input to pass to a BindGroup

array of already created bindings (buffers, texture, etc.) to pass to this BindGroup

label?: string

BindGroup label

index?: number

BindGroup index (used to generate shader code)