GLGETUNIFORMSUBROUTI(3G)
πΈ NAME πΈ
okay so welcome to the GLGETUNIFORMSUBROUTI(3G) manual page β yes, the header has a [FIXME: manual] tag, iconic. Anyway, bestie, the actual NAME situation is:
glGetUniformSubroutineβ retrieve the value of a subroutine uniform of a given shader stage of the current program. π β¨
π§Ύ C SPECIFICATION π§Ύ
the C signature is literally this, no cap:
void glGetUniformSubroutineuiv(GLenum shadertype, GLint location,
GLuint *values);
π PARAMETERS π
shadertypeβ specifies the shader stage from which to query for subroutine uniform index.<hotpink>bestie, it must be one of</hotpink>GL_VERTEX_SHADER,GL_TESS_CONTROL_SHADER,GL_TESS_EVALUATION_SHADER,GL_GEOMETRY_SHADERorGL_FRAGMENT_SHADER.locationβ specifies the location of the subroutine uniform. πvaluesβ specifies the address of a variable to receive the value or values of the subroutine uniform. π«Ά
π¦ DESCRIPTION π¦
okay so hereβs the vibe: glGetUniformSubroutine retrieves the value of the subroutine uniform at location location for shader stage shadertype of the current program.
location must be less than the value of GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS for the shader currently in use at shader stage shadertype. The value of the subroutine uniform is returned in values. β¨
π ERRORS π
GL_INVALID_ENUMis generated ifshadertypeis not one of the accepted values.GL_INVALID_VALUEis generated iflocationis greater than or equal to the value ofGL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONSfor the shader currently in use at shader stageshadertype.GL_INVALID_OPERATIONis generated if no program is active. π
π VERSION SUPPORT π
OpenGL Version check for glGetUniformSubroutineuiv β feature name glGetUniformSubroutineuiv, bestie:
- OpenGL 2.0:
- - OpenGL 2.1:
- - OpenGL 3.0:
- - OpenGL 3.1:
- - OpenGL 3.2:
- - OpenGL 3.3:
- - OpenGL 4.0:
β - OpenGL 4.1:
β - OpenGL 4.2:
β - OpenGL 4.3:
β - OpenGL 4.4:
β - OpenGL 4.5:
β
the check marks are eating, fr fr πβ
π SEE ALSO π
glGetProgram()glGetActiveSubroutineUniform()glGetActiveSubroutineUniformName()glGetUniformLocation()
π COPYRIGHT π
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. http://opencontent.org/openpub/.
π COPYRIGHT π
Copyright Β© 2010-2014 Khronos Group.
thatβs the whole page, bestie β the footer/source tag is [FIXME: source], and the date on it is 08/09/2021 πβ¨π«Ά
π¦ where this page comes from
- centos-stream 9: gl-manpages 1.1-24.20190306.el9 Β· MIT and Open Publication
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms