Skip to content

API Reference / @gtkx/gl / getUniformBlockIndex

Function: getUniformBlockIndex()

getUniformBlockIndex(program, uniformBlockName): number

Defined in: generated/commands.d.ts:3300

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

Released under the MPL-2.0 License.