glGetProgramResourceName

query the name of an indexed resource within a program

Signature

glGetProgramResourceName( GLuint ( program ) , GLenum ( programInterface ) , GLuint ( index ) , GLsizei ( bufSize ) , GLsizei * ( length ) , char * ( name ) )-> void
glGetProgramResourceName( program , programInterface , index , bufSize , length , name )

Parameters

VariablesDescription
program
The name of a program object whose resources to query.
programInterface
A token identifying the interface within program containing the indexed resource.
index
The index of the resource within programInterface of program .
bufSize
The size of the character array whose address is given by name .
length
The address of a variable which will receive the length of the resource name.
name
The address of a character array into which will be written the name of the resource.