glGetActiveSubroutineUniform

query a property of an active shader subroutine uniform

Signature

glGetActiveSubroutineUniform( )->
glGetActiveSubroutineUniformiv( GLuint ( program ) , GLenum ( shadertype ) , GLuint ( index ) , GLenum ( pname ) , GLint *( values ) )-> void
glGetActiveSubroutineUniformiv( program , shadertype , index , pname , values )

Parameters

VariablesDescription
program
Specifies the name of the program containing the subroutine.
shadertype
Specifies the shader stage from which to query for the subroutine parameter. shadertype must be one of GL_VERTEX_SHADER , GL_TESS_CONTROL_SHADER , GL_TESS_EVALUATION_SHADER , GL_GEOMETRY_SHADER or GL_FRAGMENT_SHADER .
index
Specifies the index of the shader subroutine uniform.
pname
Specifies the parameter of the shader subroutine uniform to query. pname must be GL_NUM_COMPATIBLE_SUBROUTINES , GL_COMPATIBLE_SUBROUTINES , GL_UNIFORM_SIZE or GL_UNIFORM_NAME_LENGTH .
values
Specifies the address of a into which the queried value or values will be placed.