setBindGroup method
One bind group into a slot, with its dynamic offsets if it has any.
A null group unbinds the slot, and that spelling is allowed here — this
is one of the few places in WebGPU where an explicit null means something
rather than being refused. dynamicOffsets is in the order the layout's
dynamic entries were declared, not by binding number, which is the sort of
thing that draws the wrong object rather than failing.
Implementation
external void setBindGroup(
int index,
GPUBindGroup? group, [
JSArray<JSNumber> dynamicOffsets,
]);