Go to the source code of this file.
|
GLUSAPI GLUSboolean GLUSAPIENTRY | glusProgramCreateFromSource (GLUSprogram *shaderProgram, const GLUSchar **vertexSource, const GLUSchar **controlSource, const GLUSchar **evaluationSource, const GLUSchar **geometrySource, const GLUSchar **fragmentSource) |
| Creates a program by compiling the giving sources. More...
|
|
GLUSAPI GLUSboolean GLUSAPIENTRY | glusProgramCreateComputeFromSource (GLUSprogram *shaderProgram, const GLUSchar **computeSource) |
| Creates a compute shader program by compiling the giving source. More...
|
|
GLUSAPI GLUSboolean GLUSAPIENTRY | glusProgramLink (GLUSprogram *shaderProgram) |
| Links a formerly created program. More...
|
|
GLUSAPI GLUSboolean GLUSAPIENTRY | glusProgramBuildFromSource (GLUSprogram *shaderProgram, const GLUSchar **vertexSource, const GLUSchar **controlSource, const GLUSchar **evaluationSource, const GLUSchar **geometrySource, const GLUSchar **fragmentSource) |
| Builds a program by compiling and linking the giving sources. More...
|
|
GLUSAPI GLUSboolean GLUSAPIENTRY | glusProgramBuildComputeFromSource (GLUSprogram *shaderProgram, const GLUSchar **computeSource) |
| Builds a compute shader program by compiling and linking the giving source. More...
|
|
GLUSAPI GLUSboolean GLUSAPIENTRY | glusProgramBuildSeparableFromSource (GLUSprogram *shaderProgram, const GLUSenum type, const GLUSchar **source) |
| Builds a stand-alone, separable shader program by compiling and linking the giving source. More...
|
|
GLUSAPI GLUSvoid GLUSAPIENTRY | glusProgramDestroy (GLUSprogram *shaderprogram) |
| Destroys a program by freeing all resources. More...
|
|
Structure for shader program handling.
Builds a compute shader program by compiling and linking the giving source.
- Parameters
-
shaderProgram | This structure holds the necessary information of the program and the different shaders. |
computeSource | Compute shader source code. |
- Returns
- GLUS_TRUE, if compiling and linking of program succeeded.
Builds a program by compiling and linking the giving sources.
- Parameters
-
shaderProgram | This structure holds the necessary information of the program and the different shaders. |
vertexSource | Vertex shader source code. |
controlSource | Tessellation control shader source code. Optional. |
evaluationSource | Tessellation evaluation shader source code. Optional. |
geometrySource | Geometry shader source code. Optional. |
fragmentSource | Fragment shader source code. |
- Returns
- GLUS_TRUE, if compiling and linking of program succeeded.
Builds a stand-alone, separable shader program by compiling and linking the giving source.
- Parameters
-
shaderProgram | This structure holds the necessary information of the program and the different shaders. |
type | The type of the shader. |
source | Shader source code. |
- Returns
- GLUS_TRUE, if compiling and creation of program succeeded.
Creates a compute shader program by compiling the giving source.
Linking has to be done in a separate step.
- Parameters
-
shaderProgram | This structure holds the necessary information of the program and the different shaders. |
computeSource | Compute shader source code. |
- Returns
- GLUS_TRUE, if compiling and creation of program succeeded.
Creates a program by compiling the giving sources.
Linking has to be done in a separate step.
- Parameters
-
shaderProgram | This structure holds the necessary information of the program and the different shaders. |
vertexSource | Vertex shader source code. |
controlSource | Tessellation control shader source code. Optional. |
evaluationSource | Tessellation evaluation shader source code. Optional. |
geometrySource | Geometry shader source code. Optional. |
fragmentSource | Fragment shader source code. |
- Returns
- GLUS_TRUE, if compiling and creation of program succeeded.
Destroys a program by freeing all resources.
- Parameters
-
shaderprogram | This structure holds the necessary information of the program and the different shaders. |
Links a formerly created program.
- Parameters
-
shaderProgram | This structure holds the necessary information of the program and the different shaders. |
- Returns
- GLUS_TRUE, if linking of program succeeded.