Manages uniform data for shaders in WebGPU.
Creates a new Uniforms instance.
The GPUDevice to use for creating the uniform buffer.
The HTMLCanvasElement to get dimensions from.
Sets uniform values in the uniform buffer array.
An array of values to set.
The offset in the array where the values should be written.
Updates the uniform buffer on the GPU with the data from the uniform buffer array.
Static
Initializes a Float32Array with default values for uniforms.
The width of the canvas.
The height of the canvas.
A new Float32Array with initialized values.
Manages uniform data for shaders in WebGPU.