Creates a new Uniform Buffer Object.
The WebGL2 context.
The size of the buffer in bytes.
The binding point to use (e.g., 0).
Binds the buffer to a specific shader program's uniform block.
The WebGL program.
The name of the uniform block.
Destroys the underlying buffer.
Sets a float value in the buffer.
The byte offset.
The float value.
Sets an int value in the buffer.
The byte offset.
The int value.
Sets a mat4 value in the buffer.
The byte offset.
The Matrix4 data.
Sets a vec2 value in the buffer.
The byte offset.
X component.
Y component.
Sets a vec3 value in the buffer.
The byte offset.
The Vector3D value.
Uploads the local data to the GPU.
Wrapper for a WebGL2 Uniform Buffer Object (UBO).