GLGETFRAGDATALOCATIO(3G)
β¨ NAME β¨
okay so this is the GLGETFRAGDATALOCATIO(3G) page, bestie β and glGetFragDataLocation is literally here to query the bindings of color numbers to user-defined varying out variables π
πΈ C SPECIFICATION πΈ
GLint glGetFragDataLocation(GLuint program, const char * name);
π PARAMETERS π
programβ the name of the program containing the varying out variable whose binding you wanna query π«Άnameβ the name of the user-defined varying out variable whose binding you wanna query β¨
π DESCRIPTION π
glGetFragDataLocation retrieves the assigned color number binding for the user-defined varying out variable name for program program.
program must have previously been linked β no cap, that part matters.
name must be a null-terminated string.
If name is not the name of an active user-defined varying out fragment shader variable within program, -1 will be returned. yep, thatβs the vibe check result π
π¦ ERRORS π¦
GL_INVALID_OPERATIONis generated ifprogramis not the name of a program object.
like, donβt hand it something that isnβt a program object and expect main character energy, okay? π
π VERSION SUPPORT π
the version-support tea for Function / Feature Name: glGetFragDataLocation is:
- 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:
β
slay from 3.0 onward, fr fr π₯
π§ SEE ALSO π§
glCreateProgram()glBindFragDataLocation()
π 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
and thatβs the whole page, bestie π«Ά β source is [FIXME: source], dated 08/09/2021, and the manual page is GLGETFRAGDATALOCATIO(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