glGetActiveSubroutineName

query the name of an active shader subroutine

Signature

glGetActiveSubroutineName( GLuint ( program ) , GLenum ( shadertype ) , GLuint ( index ) , GLsizei ( bufsize ) , GLsizei *( length ) , GLchar *( name ) )-> void
glGetActiveSubroutineName( program , shadertype , index , bufsize , length , name )

Parameters

VariablesDescription
program
Specifies the name of the program containing the subroutine.
shadertype
Specifies the shader stage from which to query the subroutine name.
index
Specifies the index of the shader subroutine uniform.
bufsize
Specifies the size of the buffer whose address is given in name .
length
Specifies the address of a variable which is to receive the length of the shader subroutine uniform name.
name
Specifies the address of an array into which the name of the shader subroutine uniform will be written.