web api instance method
WebGL2RenderingContext: uniformBlockBinding() method
Available in workers
The WebGL2RenderingContext.uniformBlockBinding() method
of the WebGL 2 API assigns binding points
for active uniform blocks.
Syntax
uniformBlockBinding(program, uniformBlockIndex, uniformBlockBinding)
Parameters
program- : A
WebGLProgramcontaining the active uniform block whose binding to assign.
- : A
uniformBlockIndex- : A
GLuintspecifying the index of the active uniform block within the program.
- : A
uniformBlockBinding- : A
GLuintspecifying the binding point to which to bind the uniform block.
- : A
Return value
None (undefined).
Examples
gl.uniformBlockBinding(program, 0, 1);
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.