getUniformBlockIndex method

GLuint getUniformBlockIndex(
  1. WebGLProgram program,
  2. String uniformBlockName
)

The WebGL2RenderingContext.getUniformBlockIndex() method of the WebGL 2 API retrieves the index of a uniform block within a WebGLProgram.

Implementation

external GLuint getUniformBlockIndex(
  WebGLProgram program,
  String uniformBlockName,
);