glGetSubroutineUniformLocation¶
retrieve the location of a subroutine uniform of a given shader stage within a program
- arguments
-
int
$program
Specifies the name of the program containing shader stage.int
$shadertype
Specifies the shader stage from which to query for subroutine uniform index. shadertype must be one ofGL_VERTEX_SHADER ,GL_TESS_CONTROL_SHADER ,GL_TESS_EVALUATION_SHADER ,GL_GEOMETRY_SHADER orGL_FRAGMENT_SHADER .string
$name
Specifies the name of the subroutine uniform whose index to query.
- returns
-
int
Copyright © 2010-2014 Khronos Group
This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. https://opencontent.org/openpub/.