Specialisation of HighLevelGpuProgram to provide support for OpenGL Shader Language (GLSL) for OpenGL. More...
#include <OgreGLSLProgramPipeline.h>
Public Member Functions | |
GLSLProgramPipeline (GLSLGpuProgram *vertexProgram, GLSLGpuProgram *geometryProgram, GLSLGpuProgram *fragmentProgram, GLSLGpuProgram *hullProgram, GLSLGpuProgram *domainProgram, GLSLGpuProgram *computeProgram) | |
Constructor should only be used by GLSLProgramPipelineManager. More... | |
virtual | ~GLSLProgramPipeline () |
void | activate (void) |
Makes a program pipeline object active by making sure it is linked and then putting it in use. More... | |
virtual void | extractLayoutQualifiers (void) |
Finds layout qualifiers in the shader source and sets attribute indices appropriately. More... | |
virtual GLint | getAttributeIndex (VertexElementSemantic semantic, uint index) |
Get the index of a non-standard attribute bound in the linked code. More... | |
GLSLGpuProgram * | getComputeProgram () const |
GLSLGpuProgram * | getDomainProgram () const |
GLSLGpuProgram * | getFragmentProgram () const |
GLSLGpuProgram * | getGeometryProgram () const |
GLuint | getGLProgramHandle (void) const |
Get the GL Handle for the program object. More... | |
GLuint | getGLProgramPipelineHandle () const |
GL Program Pipeline Handle. More... | |
GLSLGpuProgram * | getHullProgram () const |
GL3PlusVertexArrayObject * | getVertexArrayObject () |
GLSLGpuProgram * | getVertexProgram () const |
bool | isAttributeValid (VertexElementSemantic semantic, uint index) |
Is a non-standard attribute bound in the linked code? More... | |
bool | isSkeletalAnimationIncluded (void) const |
Returns whether the linked program includes the required instructions to perform skeletal animation. More... | |
void | setSkeletalAnimationIncluded (bool included) |
Sets whether the linked program includes the required instructions to perform skeletal animation. More... | |
virtual void | updatePassIterationUniforms (GpuProgramParametersSharedPtr params) |
Updates program pipeline object uniforms using data from pass iteration GpuProgramParameters. More... | |
virtual void | updateUniformBlocks (GpuProgramParametersSharedPtr params, uint16 mask, GpuProgramType fromProgType) |
Updates program object uniform blocks using data from GpuProgramParameters. More... | |
virtual void | updateUniforms (GpuProgramParametersSharedPtr params, uint16 mask, GpuProgramType fromProgType) |
Updates program pipeline object uniforms using data from GpuProgramParameters. More... | |
Protected Types | |
typedef set< GLuint >::type | AttributeSet |
typedef map< String, VertexElementSemantic >::type | SemanticToStringMap |
Protected Member Functions | |
virtual void | _useProgram (void) |
Put a program pipeline in use. More... | |
virtual void | buildGLUniformReferences (void) |
Build uniform references from active named uniforms. More... | |
virtual void | compileAndLink (void) |
Compiles and links the separate programs. More... | |
void | compileIndividualProgram (GLSLGpuProgram *program) |
VertexElementSemantic | getAttributeSemanticEnum (String type) |
const char * | getAttributeSemanticString (VertexElementSemantic semantic) |
Ogre::String | getCombinedName (void) |
void | getMicrocodeFromCache (void) |
Get the the binary data of a program from the microcode cache. More... | |
Protected Attributes | |
GLSLGpuProgram * | mComputeProgram |
Linked compute program. More... | |
GLint | mCustomAttributesIndexes [VES_COUNT][OGRE_MAX_TEXTURE_COORD_SETS] |
An array to hold the attributes indexes. More... | |
GLSLGpuProgram * | mDomainProgram |
Linked domain(evaluation) program. More... | |
GLSLGpuProgram * | mFragmentProgram |
Linked fragment program. More... | |
GLSLGpuProgram * | mGeometryProgram |
Linked geometry program. More... | |
GLuint | mGLProgramHandle |
GL handle for the program object. More... | |
GLuint | mGLProgramPipelineHandle |
GL handle for pipeline object. More... | |
GLUniformBufferList | mGLUniformBufferReferences |
Container of uniform buffer references that are active in the program object. More... | |
GLUniformReferenceList | mGLUniformReferences |
Container of uniform references that are active in the program object. More... | |
GLSLGpuProgram * | mHullProgram |
Linked hull(control) program. More... | |
GLint | mLinked |
Flag indicating that the program or pipeline object has been successfully linked. More... | |
SemanticToStringMap | mSemanticTypeMap |
bool | mSkeletalAnimation |
Flag indicating skeletal animation is being performed. More... | |
bool | mTriedToLinkAndFailed |
Flag indicating that the program or pipeline object has tried to link and failed. More... | |
bool | mUniformRefsBuilt |
Flag to indicate that uniform references have already been built. More... | |
GL3PlusVertexArrayObject * | mVertexArrayObject |
GL handle for the vertex array object. More... | |
GLSLGpuProgram * | mVertexProgram |
Linked vertex program. More... | |
Specialisation of HighLevelGpuProgram to provide support for OpenGL Shader Language (GLSL) for OpenGL.
Definition at line 56 of file OgreGLSLProgramPipeline.h.
|
protectedinherited |
Definition at line 98 of file OgreGLSLProgramCommon.h.
|
protectedinherited |
Definition at line 115 of file OgreGLSLProgramCommon.h.
Ogre::GLSLProgramPipeline::GLSLProgramPipeline | ( | GLSLGpuProgram * | vertexProgram, |
GLSLGpuProgram * | geometryProgram, | ||
GLSLGpuProgram * | fragmentProgram, | ||
GLSLGpuProgram * | hullProgram, | ||
GLSLGpuProgram * | domainProgram, | ||
GLSLGpuProgram * | computeProgram | ||
) |
Constructor should only be used by GLSLProgramPipelineManager.
|
virtual |
|
protectedvirtual |
Put a program pipeline in use.
Implements Ogre::GLSLProgramCommon.
|
virtual |
Makes a program pipeline object active by making sure it is linked and then putting it in use.
Implements Ogre::GLSLProgramCommon.
|
protectedvirtual |
Build uniform references from active named uniforms.
|
protectedvirtual |
Compiles and links the separate programs.
Implements Ogre::GLSLProgramCommon.
|
protected |
|
virtualinherited |
Finds layout qualifiers in the shader source and sets attribute indices appropriately.
|
virtual |
Get the index of a non-standard attribute bound in the linked code.
Reimplemented from Ogre::GLSLProgramCommon.
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
inlineinherited |
Definition at line 172 of file OgreGLSLProgramCommon.h.
|
inlineinherited |
Definition at line 171 of file OgreGLSLProgramCommon.h.
|
inlineinherited |
Definition at line 168 of file OgreGLSLProgramCommon.h.
|
inlineinherited |
Definition at line 169 of file OgreGLSLProgramCommon.h.
|
inlineinherited |
Get the GL Handle for the program object.
Definition at line 145 of file OgreGLSLProgramCommon.h.
|
inline |
GL Program Pipeline Handle.
Definition at line 64 of file OgreGLSLProgramPipeline.h.
|
inlineinherited |
Definition at line 170 of file OgreGLSLProgramCommon.h.
|
protectedinherited |
Get the the binary data of a program from the microcode cache.
|
inlineinherited |
Definition at line 173 of file OgreGLSLProgramCommon.h.
|
inlineinherited |
Definition at line 167 of file OgreGLSLProgramCommon.h.
|
inherited |
Is a non-standard attribute bound in the linked code?
|
inlineinherited |
Returns whether the linked program includes the required instructions to perform skeletal animation.
Definition at line 160 of file OgreGLSLProgramCommon.h.
|
inlineinherited |
Sets whether the linked program includes the required instructions to perform skeletal animation.
Definition at line 152 of file OgreGLSLProgramCommon.h.
|
virtual |
Updates program pipeline object uniforms using data from pass iteration GpuProgramParameters.
normally called by GLSLGpuProgram::bindMultiPassParameters() just before multi pass rendering occurs.
Implements Ogre::GLSLProgramCommon.
|
virtual |
Updates program object uniform blocks using data from GpuProgramParameters.
normally called by GLSLGpuProgram::bindParameters() just before rendering occurs.
Implements Ogre::GLSLProgramCommon.
|
virtual |
Updates program pipeline object uniforms using data from GpuProgramParameters.
normally called by GLSLGpuProgram::bindParameters() just before rendering occurs.
Implements Ogre::GLSLProgramCommon.
|
protectedinherited |
Linked compute program.
Definition at line 81 of file OgreGLSLProgramCommon.h.
|
protectedinherited |
An array to hold the attributes indexes.
Definition at line 101 of file OgreGLSLProgramCommon.h.
|
protectedinherited |
Linked domain(evaluation) program.
Definition at line 79 of file OgreGLSLProgramCommon.h.
|
protectedinherited |
Linked fragment program.
Definition at line 73 of file OgreGLSLProgramCommon.h.
|
protectedinherited |
Linked geometry program.
Definition at line 75 of file OgreGLSLProgramCommon.h.
|
protectedinherited |
GL handle for the program object.
Definition at line 88 of file OgreGLSLProgramCommon.h.
|
protected |
GL handle for pipeline object.
Definition at line 88 of file OgreGLSLProgramPipeline.h.
|
protectedinherited |
Container of uniform buffer references that are active in the program object.
Definition at line 68 of file OgreGLSLProgramCommon.h.
|
protectedinherited |
Container of uniform references that are active in the program object.
Definition at line 65 of file OgreGLSLProgramCommon.h.
|
protectedinherited |
Linked hull(control) program.
Definition at line 77 of file OgreGLSLProgramCommon.h.
|
protectedinherited |
Flag indicating that the program or pipeline object has been successfully linked.
Definition at line 90 of file OgreGLSLProgramCommon.h.
|
protectedinherited |
Definition at line 116 of file OgreGLSLProgramCommon.h.
|
protectedinherited |
Flag indicating skeletal animation is being performed.
Definition at line 94 of file OgreGLSLProgramCommon.h.
|
protectedinherited |
Flag indicating that the program or pipeline object has tried to link and failed.
Definition at line 92 of file OgreGLSLProgramCommon.h.
|
protectedinherited |
Flag to indicate that uniform references have already been built.
Definition at line 86 of file OgreGLSLProgramCommon.h.
|
protectedinherited |
GL handle for the vertex array object.
Definition at line 83 of file OgreGLSLProgramCommon.h.
|
protectedinherited |
Linked vertex program.
Definition at line 71 of file OgreGLSLProgramCommon.h.