28 #ifndef __ShaderProgramWriterCG_H__
29 #define __ShaderProgramWriterCG_H__
62 virtual void writeSourceCode(std::ostream& os,
Program* program);
75 void initializeStringMaps();
78 void writeProgramDependencies(std::ostream& os,
Program* program);
84 void writeFunctionParameter(std::ostream& os,
ParameterPtr parameter);
87 void writeLocalParameter(std::ostream& os,
ParameterPtr parameter);
90 void writeFunctionDeclaration(std::ostream& os,
Function*
function);
93 void writeAtomInstance(std::ostream& os,
FunctionAtom* atom);
CG program writer factory implementation.
GpuConstTypeToStringMap mGpuConstTypeMap
Interface definition for factories of ShaderProgramWriter.
virtual ProgramWriter * create(void)
virtual const String & getTargetLanguage() const
map< GpuConstantType, const char * >::type GpuConstTypeToStringMap
ShaderProgramWriterCGFactory()
virtual const String & getTargetLanguage(void) const
ParamSemanticToStringMap mParamSemanticMap
map< Parameter::Semantic, const char * >::type ParamSemanticToStringMap
A class that represents a shader based program function.
Base class interface for shader program writers.
virtual ~ShaderProgramWriterCGFactory()
static String TargetLanguage
A class that represents an atomic code section of shader based program function.
A class that represents a shader based program.
Reference-counted shared pointer, used for objects where implicit destruction is required.
CG target language writer implementation.