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