GLUS
Functions
glus_programpipeline.c File Reference
#include "GL/glus.h"

Functions

GLUSboolean GLUSAPIENTRY glusProgramPipelineBuild (GLUSprogrampipeline *programPipeline, GLUSuint vertexProgram, GLUSuint controlProgram, GLUSuint evaluationProgram, GLUSuint geometryProgram, GLUSuint fragmentProgram)
 Builds a program pipeline. More...
 
GLUSboolean GLUSAPIENTRY glusProgramPipelineBuildCompute (GLUSprogrampipeline *programPipeline, GLUSuint computeProgram)
 Builds a compute shader program pipeline. More...
 
GLUSvoid GLUSAPIENTRY glusProgramPipelineDestroy (GLUSprogrampipeline *programPipeline)
 Destroys a program pipeline by freeing the pipeline. More...
 

Function Documentation

GLUSboolean GLUSAPIENTRY glusProgramPipelineBuild ( GLUSprogrampipeline programPipeline,
GLUSuint  vertexProgram,
GLUSuint  controlProgram,
GLUSuint  evaluationProgram,
GLUSuint  geometryProgram,
GLUSuint  fragmentProgram 
)

Builds a program pipeline.

Parameters
programPipelineThis structure holds the necessary information of the program pipeline and the different shader programs.
vertexProgramVertex shader program.
controlProgramTessellation control shader program.
evaluationProgramTessellation evaluation shader program.
geometryProgramGeometry shader program.
fragmentProgramFragment shader program.
Returns
GLUS_TRUE, if building of program pipeline succeeded.
GLUSboolean GLUSAPIENTRY glusProgramPipelineBuildCompute ( GLUSprogrampipeline programPipeline,
GLUSuint  computeProgram 
)

Builds a compute shader program pipeline.

Parameters
programPipelineThis structure holds the necessary information of the program pipeline and the different shader programs.
computeProgramCompute shader program.
Returns
GLUS_TRUE, if building of program pipeline succeeded.
GLUSvoid GLUSAPIENTRY glusProgramPipelineDestroy ( GLUSprogrampipeline programPipeline)

Destroys a program pipeline by freeing the pipeline.

The programs are not freed.

Parameters
programPipelineThis structure holds the necessary information of the program pipeline and the different shader programs.