Function RenderPass.setBindGroup

Sets the active bind group for a given bind group index.

void setBindGroup (
  const(uint) index,
  BindGroup bindGroup,
  const(uint[]) offsets = []
);

If the bind group has dynamic offsets, provide them in order of their declaration. These offsets must be aligned to BIND_BUFFER_ALIGNMENT.