GLGETPROGRAMPIPELINE(3G)

πŸ’… GLGETPROGRAMPIPELINE(3G) β€” no literally bestie this is the 3G manual page

okay so picture this: you've got a program pipeline object and it's got opinions (that's the info log), and this function is how you get them out. that's it. that's the whole vibe. let's go 🫢


✨ NAME ✨

glGetProgramPipelineInfoLog β€” retrieve the info log string from a program pipeline object. it's giving "read the receipts" energy, and honestly? iconic. πŸ’–


πŸŽ€ C SPECIFICATION πŸŽ€

void glGetProgramPipelineInfoLog(GLuint pipeline, GLsizei bufSize,
                                 GLsizei *length, GLchar *infoLog);

copy it exactly like that, no cap, don't be creative with the signature please 😭


🌸 PARAMETERS 🌸

  • pipeline β€” the name of a program pipeline object you wanna pull the info log out of. that's the one, bestie πŸ’…
  • bufSize β€” the max number of characters, including the null terminator, that may be written into infoLog. yes the null terminator counts, do not forget the null terminator, the null terminator is main character πŸŽ€
  • length β€” the address of a variable where the number of characters actually written into infoLog gets written. very "and here's the receipt for the receipt" of it all.
  • infoLog β€” the address of an array of characters where the info log for pipeline gets written. this is the little container your tea gets poured into β˜•βœ¨

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so glGetProgramPipelineInfoLog retrieves the info log for the program pipeline object pipeline. The info log, including its null terminator, is written into the array of characters whose address is given by infoLog. 🫢

The maximum number of characters that may be written into infoLog is given by bufSize, and the actual number of characters written into infoLog is returned in the integer whose address is given by length. If length is NULL, no length is returned β€” she simply declines to report, and that's valid. πŸ™ˆ

The actual length of the info log for the program pipeline may be determined by calling glGetProgramPipeline() with pname set to GL_INFO_LOG_LENGTH. so if you need to know how big the tea is before you pour it, that's your girl. πŸ’œ


πŸ’€ ERRORS πŸ’€

  • GL_INVALID_OPERATION is generated if pipeline is not a name previously returned from a call to glGenProgramPipelines() or if such a name has been deleted by a call to glDeleteProgramPipelines(). translation: don't make up a name and don't use a dead one. she WILL notice. πŸ’€

⭐ ASSOCIATED GETS ⭐

  • glGetProgramPipeline() with parameter GL_INFO_LOG_LENGTH.

iykyk πŸ‘‘


🌈 VERSION SUPPORT 🌈

here's the whole chart, translated from the little box situation, every single cell accounted for, I would never do you dirty like that:

  • glGetProgramPipelineInfoLog β€” 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: βœ”

so she showed up in 4.1 and has been booked & busy every version since. before that? not in the building. πŸ¦‹βœ¨


πŸ’– SEE ALSO πŸ’–

  • glGenProgramPipelines()
  • glBindProgramPipeline()
  • glDeleteProgramPipelines()
  • glGetProgramPipeline()

the whole friend group tbh 🫢


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

(yes there's two of them, that's how the original rolls, I'm not merging them, I would never 😀)


and that's the page!! mwah πŸ’‹ source situation was [FIXME: source], dated 08/09/2021, and it signs off as GLGETPROGRAMPIPELINE(3G) β€” go forth and read those info logs, bestie, you're gonna slay πŸŽ€πŸ’…πŸ”₯

πŸ“¦ where this page comes from