Skip to content

API Reference / @gtkx/gl / getUniformBlockIndex

Function: getUniformBlockIndex() ​

getUniformBlockIndex(program, uniformBlockName): number

Defined in: packages/gl/src/generated/commands.ts:4209

GLuint glGetUniformBlockIndex(GLuint program, const GLchar *uniformBlockName)

Provided by GL_VERSION_3_1. Registry note: Reuse ARB_uniform_buffer_object Also provided by the GL_ARB_uniform_buffer_object extension. GLX single opcode 218.

Parameters ​

program ​

number

GLuint, object class program

uniformBlockName ​

string

string, length COMPSIZE()

Returns ​

number

GLuint