GLGETACTIVEUNIFORMNA(3G)
๐ NAME ๐
okay so bestie, welcome to GLGETACTIVEUNIFORMNA(3G) โ the manual page for glGetActiveUniformName, which queries the name of an active uniform. โจ
โจ C SPECIFICATION โจ
void glGetActiveUniformName(GLuint program, GLuint uniformIndex,
GLsizei bufSize, GLsizei *length,
GLchar *uniformName);
๐ PARAMETERS ๐
programโ specifies the program containing the active uniform indexuniformIndex. That's the main character here. ๐uniformIndexโ specifies the index of the active uniform whose name to query. iykyk. ๐ฅbufSizeโ specifies the size of the buffer, in units ofGLchar, of the buffer whose address is specified inuniformName. They really said "units ofGLchar" and meant it. ๐lengthโ specifies the address of a variable that will receive the number of characters that were or would have been written to the buffer addressed byuniformName. It's giving "receipts, but for character counts." ๐งพuniformNameโ specifies the address of a buffer into which the GL will place the name of the active uniform atuniformIndexwithinprogram. The GL is literally putting the name there. ๐ซถ
๐ธ DESCRIPTION ๐ธ
glGetActiveUniformName returns the name of the active uniform at uniformIndex within program. If uniformName is not NULL, up to bufSize characters (including a nul-terminator) will be written into the array whose address is specified by uniformName. If length is not NULL, the number of characters that were (or would have been) written into uniformName (not including the nul-terminator) will be placed in the variable whose address is specified in length. If length is NULL, no length is returned. ๐
The length of the longest uniform name in program is given by the value of GL_ACTIVE_UNIFORM_MAX_LENGTH, which can be queried with glGetProgram(). iconic little lookup behavior, no cap. ๐
If glGetActiveUniformName is not successful, nothing is written to length or uniformName. Not even a little. ๐ญ
program must be the name of a program for which the command glLinkProgram() has been issued in the past. It is not necessary for program to have been linked successfully. The link could have failed because the number of active uniforms exceeded the limit. bestie, it can be a failed-link era program and still be valid for this call. ๐
uniformIndex must be an active uniform index of the program program, in the range zero to the value of GL_ACTIVE_UNIFORMS minus one. The value of GL_ACTIVE_UNIFORMS can be queried with glGetProgram(). math is math. ๐งฎ
๐จ ERRORS ๐จ
GL_INVALID_VALUEis generated ifuniformIndexis greater than or equal to the value ofGL_ACTIVE_UNIFORMS. nope, out of range, not today. ๐GL_INVALID_VALUEis generated ifbufSizeis negative. negative buffer size is a vibe check failure, fr fr. ๐GL_INVALID_VALUEis generated ifprogramis not the name of a program object for whichglLinkProgram()has been issued. like, did you even link, bestie? ๐ญ
๐ VERSION SUPPORT ๐
Version support for the function/feature name glGetActiveUniformName:
- 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:
โ
๐ฆ SEE ALSO ๐ฆ
glGetActiveUniform()glGetUniformIndices()glGetProgram()glLinkProgram()
๐ 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
okay bestie, thatโs the whole page ๐
โ source/version [FIXME: source], date 08/09/2021, and the manual tag is GLGETACTIVEUNIFORMNA(3G). periodt ๐
๐ฆ 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