Skip to content

API Reference / @gtkx/gl / getProgramResourceIndex

Function: getProgramResourceIndex() ​

getProgramResourceIndex(program, programInterface, name): number

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

GLuint glGetProgramResourceIndex(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

GLuint