glGetProgramStage

retrieve properties of a program object corresponding to a specified shader stage

Signature

glGetProgramStage( )->
glGetProgramStageiv( GLuint ( program ) , GLenum ( shadertype ) , GLenum ( pname ) , GLint *( values ) )-> void
glGetProgramStageiv( program , shadertype , pname , values )

Parameters

VariablesDescription
program
Specifies the name of the program containing shader stage.
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 .
pname
Specifies the parameter of the shader to query. pname must be GL_ACTIVE_SUBROUTINE_UNIFORMS , GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS , GL_ACTIVE_SUBROUTINES , GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH , or GL_ACTIVE_SUBROUTINE_MAX_LENGTH .
values
Specifies the address of a variable into which the queried value or values will be placed.