logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

glActiveShaderProgram - set the active program object for a program pipeline object

C Specification

voidglActiveShaderProgram(GLuintpipeline,GLuintprogram);

Description

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().

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.

Name

       glActiveShaderProgram - set the active program object for a program pipeline object

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.

See Also

glGenProgramPipelines(), glDeleteProgramPipelines(), glIsProgramPipeline(), glUseProgram(), glUniform()

Version Support

       ┌───────────────────────┬───────────────────────────────────────────────────────────────────────┐
       │                       │                OpenGLVersion                                         │
       ├───────────────────────┼─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┤
       │ Function2.02.13.03.13.23.34.04.14.24.34.44.5 │
       │ /                     │     │     │     │     │     │     │     │     │     │     │     │     │
       │ Feature               │     │     │     │     │     │     │     │     │     │     │     │     │
       │ Name                  │     │     │     │     │     │     │     │     │     │     │     │     │
       ├───────────────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
       │ glActiveShaderProgram │  -  │  -  │  -  │  -  │  -  │  -  │  -  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │
       └───────────────────────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘

See Also