Skip to content

API Reference / @gtkx/gl / getProgramResourceLocationIndex

Function: getProgramResourceLocationIndex() ​

getProgramResourceLocationIndex(program, programInterface, name): number

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

GLint glGetProgramResourceLocationIndex(GLuint program, GLenum programInterface, const GLchar *name)

Provided by GL_VERSION_4_3. Registry note: Reuse commands from ARB_program_interface_query Also provided by the GL_ARB_program_interface_query extension.

Parameters ​

program ​

number

GLuint, object class program

programInterface ​

number

ProgramInterface

name ​

string

string, length COMPSIZE(name)

Returns ​

number

GLint