Handles registration and compilation of Shader Program Pipelines.
More...
#include <ShaderProgramPipeline.hpp>
|
| ShaderProgramPipeline () |
| creates a shader program pipeline by generating a shader program pipeline handle
|
|
| ~ShaderProgramPipeline () |
| deletes a shader program pipeline by deleting the shader program pipeline handle
|
|
| ShaderProgramPipeline (const ShaderProgramPipeline &)=delete |
| do not allow shader program pipelines to be copied
|
|
ShaderProgramPipeline & | operator= (const ShaderProgramPipeline &)=delete |
| do not allow shader program pipelines to be copied
|
|
void | useProgramStages (GLbitfield programStages, const ShaderProgram *shaderProgram) const |
| adds shader program stages to pipeline
|
|
void | useProgramStages (const ShaderProgram *shaderProgram) const |
| adds shader program stages to pipeline
|
|
void | bindPipeline () const |
| bind shader program pipeline
|
|
void | printPipelineInfo () const |
| prints shader program pipeline information to console
|
|
bool | validatePipeline () const |
|
Handles registration and compilation of Shader Program Pipelines.
◆ bindPipeline()
void CSCI441::ShaderProgramPipeline::bindPipeline |
( |
| ) |
const |
|
inline |
bind shader program pipeline
- Note
- unbinds any previously used shader programs
◆ disableDebugMessages()
void CSCI441::ShaderProgramPipeline::disableDebugMessages |
( |
| ) |
|
|
inlinestatic |
Disables debug messages from Shader Program functions.
- Note
- Debug messages are on by default.
◆ enableDebugMessages()
void CSCI441::ShaderProgramPipeline::enableDebugMessages |
( |
| ) |
|
|
inlinestatic |
Enables debug messages from Shader Program functions.
- Note
- Debug messages are on by default.
◆ useProgramStages() [1/2]
void CSCI441::ShaderProgramPipeline::useProgramStages |
( |
const ShaderProgram * |
shaderProgram | ) |
const |
|
inline |
adds shader program stages to pipeline
- Parameters
-
shaderProgram | separable shader program to use within pipeline |
- Note
- ShaderProgram must be separable
◆ useProgramStages() [2/2]
void CSCI441::ShaderProgramPipeline::useProgramStages |
( |
GLbitfield |
programStages, |
|
|
const ShaderProgram * |
shaderProgram |
|
) |
| const |
|
inline |
adds shader program stages to pipeline
- Parameters
-
programStages | stages shader program contains |
shaderProgram | separable shader program to use within pipeline |
- Note
- ShaderProgram must be separable
◆ validatePipeline()
bool CSCI441::ShaderProgramPipeline::validatePipeline |
( |
| ) |
const |
|
inline |
checks if shader program pipeline is in valid state to run
- Returns
- true if valid
The documentation for this class was generated from the following file: