Go to the documentation of this file.
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);
map< Parameter::Semantic, const char * >::type ParamSemanticToStringMap
virtual ProgramWriter * create(void)
CG program writer factory implementation.
static String TargetLanguage
Base class interface for shader program writers.
virtual ~ShaderProgramWriterCGFactory()
virtual const String & getTargetLanguage() const
CG target language writer implementation.
A class that represents a shader based program.
ShaderProgramWriterCGFactory()
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.
GpuConstTypeToStringMap mGpuConstTypeMap
map< GpuConstantType, const char * >::type GpuConstTypeToStringMap
Interface definition for factories of ShaderProgramWriter.
virtual const String & getTargetLanguage(void) const
ParamSemanticToStringMap mParamSemanticMap
A class that represents a shader based program function.
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.