Indicates if the WebGL underlying uniform buffer is in sync with the javascript cache data.
Wrapper for updateUniform.
Wrapper for updateUniform.
Wrapper for updateUniform.
Wrapper for updateUniform.
Wrapper for updateUniform.
Wrapper for updateUniform.
Wrapper for updateUniform.
Wrapper for updateUniform.
Wrapper for updateUniform.
Wrapper for updateUniform.
Wrapper for updateUniform.
Indicates if the buffer is using the WebGL2 UBO implementation, or just falling back on setUniformXXX calls.
Wrapper for addUniform.
Name of the uniform, as used in the uniform block in the shader.
Wrapper for addUniform.
Name of the uniform, as used in the uniform block in the shader.
Wrapper for addUniform.
Name of the uniform, as used in the uniform block in the shader.
Wrapper for addUniform.
Name of the uniform, as used in the uniform block in the shader.
Wrapper for addUniform.
Name of the uniform, as used in the uniform block in the shader.
A 4x4 matrix.
Wrapper for addUniform.
Name of the uniform, as used in the uniform block in the shader.
Wrapper for addUniform.
Name of the uniform, as used in the uniform block in the shader.
Adds an uniform in the buffer. Warning : the subsequents calls of this function must be in the same order as declared in the shader for the layout to be correct !
Name of the uniform, as used in the uniform block in the shader.
Data size, or data directly.
Wrapper for addUniform.
Name of the uniform, as used in the uniform block in the shader.
Binds this uniform buffer to an effect.
Name of the uniform block in the shader.
Effectively creates the WebGL Uniform Buffer, once layout is completed with addUniform
.
Disposes the uniform buffer.
The underlying WebGL Uniform buffer.
The data cache on JS side.
Indicates if the WebGL underlying uniform buffer is dynamic. Also, a dynamic UniformBuffer will disable cache verification and always update the underlying WebGL uniform buffer to the GPU.
Sets a sampler uniform on the effect.
Name of the sampler.
Updates the WebGL Uniform Buffer on the GPU.
If the dynamic
flag is set to true, no cache comparison is done.
Otherwise, the buffer will be updated only if the cache differs.
Updates the value of an uniform. The update
method must be called afterwards to make it effective in the GPU.
Name of the uniform, as used in the uniform block in the shader.
Flattened data
Size of the data.
Directly updates the value of the uniform in the cache AND on the GPU.
Name of the uniform, as used in the uniform block in the shader.
Flattened data
Generated using TypeDoc
Uniform buffer objects.
Handles blocks of uniform on the GPU.
If WebGL 2 is not available, this class falls back on traditionnal setUniformXXX calls.
For more information, please refer to : https://www.khronos.org/opengl/wiki/Uniform_Buffer_Object