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_OPERATION is generated if program is 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 Β© 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 Β© 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