Signature
Parameters
Variables | Description |
---|---|
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.
|
bufsize |
Specifies the size of the buffer whose address is given in
name
.
|
length |
Specifies the address of a variable into which is written the number of characters copied into
name
.
|
name |
Specifies the address of a buffer that will receive the name of the specified shader subroutine uniform.
|