GLGETPROGRAMPIPELINE(3G)

NAME

glGetProgramPipeline β€” retrieve properties of a program pipeline object. Welcome to the 3G manual page ([FIXME: manual] placeholder and all), bestie β€” we're about to peek at a program pipeline’s settings. πŸ’…βœ¨

C SPECIFICATION

void glGetProgramPipelineiv(GLuint pipeline, GLenum pname,
                            GLint *params);

PARAMETERS

  • pipeline β€” specifies the name of a program pipeline object whose parameter you want to retrieve.
  • pname β€” specifies the name of the parameter to retrieve.
  • params β€” specifies the address of a variable into which will be written the value or values of pname for pipeline.

DESCRIPTION

glGetProgramPipelineiv retrieves the value of a property of the program pipeline object pipeline. pname specifies the name of the parameter whose value to retrieve. The value of the parameter is written to the variable whose address is given by params.

Here’s the pname tea, one by one πŸ«–:

  • If pname is GL_ACTIVE_PROGRAM, the name of the active program object of the program pipeline object is returned in params.
  • If pname is GL_VERTEX_SHADER, the name of the current program object for the vertex shader type of the program pipeline object is returned in params.
  • If pname is GL_TESS_CONTROL_SHADER, the name of the current program object for the tessellation control shader type of the program pipeline object is returned in params.
  • If pname is GL_TESS_EVALUATION_SHADER, the name of the current program object for the tessellation evaluation shader type of the program pipeline object is returned in params.
  • If pname is GL_GEOMETRY_SHADER, the name of the current program object for the geometry shader type of the program pipeline object is returned in params.
  • If pname is GL_FRAGMENT_SHADER, the name of the current program object for the fragment shader type of the program pipeline object is returned in params.
  • If pname is GL_INFO_LOG_LENGTH, the length of the info log, including the null terminator, is returned in params. If there is no info log, zero is returned.

ERRORS

  • GL_INVALID_OPERATION is generated if pipeline is not zero or a name previously returned from a call to glGenProgramPipelines() or if such a name has been deleted by a call to glDeleteProgramPipelines().
  • GL_INVALID_ENUM is generated if pname is not one of the accepted values.

VERSION SUPPORT

The version-support vibe check for glGetProgramPipelineiv across OpenGL Version:

  • Function / Feature Name: glGetProgramPipelineiv
  • 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()
  • glBindProgramPipeline()
  • glDeleteProgramPipelines()

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


okay that's the whole page, bestie! 🫢 this one came from [FIXME: source], version/date 08/09/2021, and it's the GLGETPROGRAMPIPELINE(3G) page. slay and pipeline responsibly ✨

πŸ“¦ where this page comes from