OGRE
1.12.13
Object-Oriented Graphics Rendering Engine
|
A class that provides extra processing services on CPU based programs. More...
#include <OgreShaderProgramProcessor.h>
Public Member Functions | |
ProgramProcessor () | |
Class constructor. More... | |
virtual | ~ProgramProcessor () |
Class destructor. More... | |
virtual const String & | getTargetLanguage () const =0 |
Return the target language of this processor. More... | |
virtual bool | postCreateGpuPrograms (ProgramSet *programSet)=0 |
Called after creation of the GPU programs. More... | |
virtual bool | preCreateGpuPrograms (ProgramSet *programSet)=0 |
Called before creation of the GPU programs. More... | |
A class that provides extra processing services on CPU based programs.
The base class perform only the generic processing. In order to provide target language specific services and optimization one should derive from this class and register its factory via the ProgramManager instance.
Ogre::RTShader::ProgramProcessor::ProgramProcessor | ( | ) |
Class constructor.
|
virtual |
Class destructor.
|
pure virtual |
Return the target language of this processor.
Implemented in Ogre::RTShader::CGProgramProcessor, Ogre::RTShader::GLSLESProgramProcessor, Ogre::RTShader::GLSLProgramProcessor, and Ogre::RTShader::HLSLProgramProcessor.
|
pure virtual |
Called before creation of the GPU programs.
Do several preparation operation such as validation, register compaction and specific target language optimizations.
programSet | The program set container. Return true on success. |
Implemented in Ogre::RTShader::CGProgramProcessor, Ogre::RTShader::GLSLESProgramProcessor, Ogre::RTShader::GLSLProgramProcessor, and Ogre::RTShader::HLSLProgramProcessor.
|
pure virtual |
Called after creation of the GPU programs.
programSet | The program set container. Return true on success. |
Implemented in Ogre::RTShader::CGProgramProcessor, Ogre::RTShader::GLSLESProgramProcessor, Ogre::RTShader::GLSLProgramProcessor, and Ogre::RTShader::HLSLProgramProcessor.