Create a new Bind Group.
The graphics device used to manage this uniform buffer.
Format of the bind group.
Optional
defaultUniformBuffer: UniformBufferThe default uniform buffer. Typically a bind group only has a single uniform buffer, and this allows easier access.
An array of offsets for each uniform buffer in the bind group. This is the offset in the buffer where the uniform buffer data starts.
Frees resources associated with this bind group.
Assign a storage buffer to a slot.
The name of the storage buffer slot.
The storage buffer to assign to the slot.
Assign a storage texture to a named slot.
The name of the texture slot.
Texture to assign to the slot.
Assign a texture to a named slot.
The name of the texture slot.
Texture to assign to the slot.
Assign a uniform buffer to a slot.
The name of the uniform buffer slot
The Uniform buffer to assign to the slot.
Applies any changes made to the bind group's properties. Note that the content of used uniform buffers needs to be updated before calling this method.
Updates the uniform buffers in this bind group.
A bind group represents a collection of UniformBuffer, Texture and StorageBuffer instanced, which can be bind on a GPU for rendering.