glActiveShaderProgram function is used to set the active program object
for a program pipeline object. This function takes two integer arguments
$program. The pipeline parameter specifies the program
pipeline object, and the program parameter specifies the linked program to be
the active program.
Here is an example usage of
Note that before calling
glActiveShaderProgram, you should first create a
program object, attach shaders to it, link the program, and then create a
program pipeline object with
glGenProgramPipelines. Also, make sure that
the program object referred to by
$program has been successfully linked. If
GL_INVALID_OPERATION will be generated.
$pipelineSpecifies the program pipeline object to set the active program object for.
$programSpecifies the program object to set as the active program pipeline object pipeline.
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. https://opencontent.org/openpub/.