GLACTIVESHADERPROGRA(3G)

🌸 NAME 🌸

glActiveShaderProgram β€” set the active program object for a program pipeline object, bestie. Also the manual page itself goes by GLACTIVESHADERPROGRA(3G) (yes, the title is truncated like that), and the header literally has [FIXME: manual] in it β€” unfinished but iconic πŸ’…

πŸ’» C SPECIFICATION πŸ’»

void glActiveShaderProgram(GLuint pipeline, GLuint program);

πŸŽ€ PARAMETERS πŸŽ€

  • pipeline β€” specifies the program pipeline object to set the active program object for.
  • program β€” specifies the program object to set as the active program pipeline object pipeline.

✨ DESCRIPTION ✨

okay so glActiveShaderProgram sets the linked program named by program to be the active program for the program pipeline object pipeline. The active program in the active program pipeline object is the target of calls to glUniform() when no program has been made current through a call to glUseProgram(). That's the whole vibe, no cap 🫢

πŸ’€ 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().
  • GL_INVALID_OPERATION is generated if program refers to a program object that has not been successfully linked.

🌈 VERSION SUPPORT 🌈

Version support check for the function / feature name glActiveShaderProgram β€” here's the OpenGL Version tea, 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: βœ”

πŸ¦‹ SEE ALSO πŸ¦‹

  • glGenProgramPipelines()
  • glDeleteProgramPipelines()
  • glIsProgramPipeline()
  • glUseProgram()
  • glUniform()
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


that's the whole page, bestie 🫢 β€” source: [FIXME: source], date/version line: 08/09/2021, and the footer still says GLACTIVESHADERPROGRA(3G). mwah πŸ’‹

πŸ“¦ where this page comes from