Torque3D Documentation / _generateds / ShaderGenPrinter

ShaderGenPrinter

Engine/source/shaderGen/shaderGen.h

Base class used by shaderGen to be API agnostic.

More...

Public Functions

printLine(Stream & stream, const String & line)

Prints a comment block specifying the beginning of the main() function (or equivalent)

Prints the final line of the pixel shader.

Prints the output struct for the pixel shader. Probably only used in HLSL/Cg.

Prints a simple header, including the engine name, language type, and the fact that the shader was procedurally generated.

Prints the final line of the vertex shader, e.g. return OUT; }, }, END.

Detailed Description

Base class used by shaderGen to be API agnostic.

Subclasses implement the various methods in an API specific way.

Public Functions

~ShaderGenPrinter()

printLine(Stream & stream, const String & line)

Reimplemented by: ShaderGenPrinterGLSL, ShaderGenPrinterHLSL

printMainComment(Stream & stream)

Prints a comment block specifying the beginning of the main() function (or equivalent)

Reimplemented by: ShaderGenPrinterGLSL, ShaderGenPrinterHLSL

printPixelShaderCloser(Stream & stream)

Prints the final line of the pixel shader.

Reimplemented by: ShaderGenPrinterGLSL, ShaderGenPrinterHLSL

printPixelShaderOutputStruct(Stream & stream, const MaterialFeatureData & featureData)

Prints the output struct for the pixel shader. Probably only used in HLSL/Cg.

Reimplemented by: ShaderGenPrinterGLSL, ShaderGenPrinterHLSL

printShaderHeader(Stream & stream)

Prints a simple header, including the engine name, language type, and the fact that the shader was procedurally generated.

Reimplemented by: ShaderGenPrinterGLSL, ShaderGenPrinterHLSL

printVertexShaderCloser(Stream & stream)

Prints the final line of the vertex shader, e.g. return OUT; }, }, END.

Reimplemented by: ShaderGenPrinterGLSL, ShaderGenPrinterHLSL