WebGL
The WebGL2RenderingContext.uniformBlockBinding() method
of the WebGL 2 API assigns binding points
for active uniform blocks.
Syntax
uniformBlockBinding(program, uniformBlockIndex, uniformBlockBinding)
Parameters
program- : A WebGLProgram containing the active uniform block whose binding to assign.
uniformBlockIndex- : A WebGL_API/Types specifying the index of the active uniform block within the program.
uniformBlockBinding- : A WebGL_API/Types specifying the binding point to which to bind the uniform block.
Return value
None (undefined).
Examples
gl.uniformBlockBinding(program, 0, 1);
Specifications
Browser compatibility
See also
- WebGL2RenderingContext.getUniformIndices()
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
