glGetSubroutineUniformLocation

retrieve the location of a subroutine uniform of a given shader stage within a program

Signature

glGetSubroutineUniformLocation( GLuint ( program ) , GLenum ( shadertype ) , const GLchar *( name ) )-> GLint
glGetSubroutineUniformLocation( program , shadertype , name ) -> <class 'ctypes.c_int'>

Parameters

VariablesDescription
program
Specifies the name of the program containing shader stage.
shadertype
Specifies the shader stage from which to query for subroutine uniform index. shadertype must be one of GL_VERTEX_SHADER , GL_TESS_CONTROL_SHADER , GL_TESS_EVALUATION_SHADER , GL_GEOMETRY_SHADER or GL_FRAGMENT_SHADER .
name
Specifies the name of the subroutine uniform whose index to query.