The buffers size in bytes
CPU-side representation of the data.
View of the contained uniforms.
Returns the underlying WebGLBuffer once ready.
Returns the underlying WebGLBuffer if it has been initialized, or null
otherwise.
Use getBuffer()
to wait until the buffer is ready.
WebGLBuffer
if ready, null
otherwise.
Binds the buffer to a target binding point.
The binding point to bind to. If undefined, the target defined at instancing is used.
true
if the buffer has successfully been bound, false
otherwise.
Flags the underlying WebGLBuffer for deletion. The buffer cannot be bound afterwards.
Marks a given range of the buffer as invalid. If parts of the buffer have already been invalidated, the range containing all parts will be invalidated.
First byte to invalidate.
Last byte to invalidate.
Uploads the range marked as invalid to the GPU buffer.
Uploads the range marked as invalid to the GPU buffer immediately. This is only usable after the buffer has been initialized.
Generated using TypeDoc
GPU buffer used as the data source for a uniform block, with CPU-side data representation and individual member views.