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);
Interface definition for factories of ShaderProgramWriter.
ParamSemanticToStringMap mParamSemanticMap
A class that represents an atomic code section of shader based program function.
Reference-counted shared pointer, used for objects where implicit destruction is required.
CG program writer factory implementation.
ShaderProgramWriterCGFactory()
Base class interface for shader program writers.
A class that represents a shader based program.
virtual ProgramWriter * create(void)
GpuConstTypeToStringMap mGpuConstTypeMap
A class that represents a shader based program function.
virtual ~ShaderProgramWriterCGFactory()
map< GpuConstantType, const char * >::type GpuConstTypeToStringMap
CG target language writer implementation.
map< Parameter::Semantic, const char * >::type ParamSemanticToStringMap
virtual const String & getTargetLanguage(void) const
static String TargetLanguage
virtual const String & getTargetLanguage() const