"L. Spiro Engine"
|
Translates from the engine shader language to HLSL. More...
#include <LSGDirectX11ShaderTranslator.h>
Protected Member Functions | |
LSBOOL LSE_CALL | PostShaderString (CString &_sShader, CString &_sError) |
LSG_PROCESSING_DIRECTIVE LSE_CALL | HandleFunctionDeclaration (LSG_NODE_CALLBACK &_ncData) |
LSG_PROCESSING_DIRECTIVE LSE_CALL | HandleInitListWrap (LSG_NODE_CALLBACK &_ncData) |
LSG_PROCESSING_DIRECTIVE LSE_CALL | HandleSingleDeclaration (LSG_NODE_CALLBACK &_ncData) |
LSG_PROCESSING_DIRECTIVE LSE_CALL | HandleIntrinsic (LSG_NODE_CALLBACK &_ncData) |
LSG_PROCESSING_DIRECTIVE LSE_CALL | HandleSemantic (LSG_NODE_CALLBACK &_ncData) |
virtual LSBOOL LSE_CALL | DecodeTypeQualifier (LSUINT64 _ui64Qualifier, CString &_sString) |
virtual LSBOOL LSE_CALL | DecodeType (LSUINT64 _ui64Type, CString &_sString) |
Protected Attributes | |
CVector< CDirectX11CBuffer > | m_vCBuffers |
Translates from the engine shader language to HLSL.
Class CDirectX11ShaderTranslator Description: Translates from the engine shader language to HLSL.
virtual LSBOOL LSE_CALL lsg::CDirectX11ShaderTranslator::DecodeType | ( | LSUINT64 | _ui64Type, |
CString & | _sString | ||
) | [protected, virtual] |
Decode a type.
_ui64Type | The type information. |
_sString | The string to which to print the data. |
Reimplemented from lsg::CShaderTranslationProcessorBase.
virtual LSBOOL LSE_CALL lsg::CDirectX11ShaderTranslator::DecodeTypeQualifier | ( | LSUINT64 | _ui64Qualifier, |
CString & | _sString | ||
) | [protected, virtual] |
Decode a type qualifier to a given string.
_ui64Qualifier | The type qualifier. |
_sString | The string to which to print the data. |
Reimplemented from lsg::CShaderTranslationProcessorBase.
LSG_PROCESSING_DIRECTIVE LSE_CALL lsg::CDirectX11ShaderTranslator::HandleFunctionDeclaration | ( | LSG_NODE_CALLBACK & | _ncData | ) | [protected, virtual] |
Handle nodes of type LSG_N_FUNCDECL.
_ncData | All data needed for the parsing. |
Reimplemented from lsg::CShaderTranslationProcessorBase.
LSG_PROCESSING_DIRECTIVE LSE_CALL lsg::CDirectX11ShaderTranslator::HandleInitListWrap | ( | LSG_NODE_CALLBACK & | _ncData | ) | [protected, virtual] |
Handle nodes of type LSG_N_INITLISTWRAP.
_ncData | All data needed for the parsing. |
Reimplemented from lsg::CShaderTranslationProcessorBase.
LSG_PROCESSING_DIRECTIVE LSE_CALL lsg::CDirectX11ShaderTranslator::HandleIntrinsic | ( | LSG_NODE_CALLBACK & | _ncData | ) | [protected, virtual] |
Handle nodes of type LSG_N_INTRINSIC.
_ncData | All data needed for the parsing. |
Reimplemented from lsg::CShaderTranslationProcessorBase.
LSG_PROCESSING_DIRECTIVE LSE_CALL lsg::CDirectX11ShaderTranslator::HandleSemantic | ( | LSG_NODE_CALLBACK & | _ncData | ) | [protected, virtual] |
Handle nodes of type LSG_N_SEMANTIC.
_ncData | All data needed for the parsing. |
Reimplemented from lsg::CShaderTranslationProcessorBase.
LSG_PROCESSING_DIRECTIVE LSE_CALL lsg::CDirectX11ShaderTranslator::HandleSingleDeclaration | ( | LSG_NODE_CALLBACK & | _ncData | ) | [protected, virtual] |
Handle nodes of type LSG_N_SINGLEDECL.
_ncData | All data needed for the parsing. |
Reimplemented from lsg::CShaderTranslationProcessorBase.
LSBOOL LSE_CALL lsg::CDirectX11ShaderTranslator::PostShaderString | ( | CString & | _sShader, |
CString & | _sError | ||
) | [protected, virtual] |
Modify the final shader string after it has been completed. Override to modify it.
_sShader | The final string, modifiable in-place. |
_sError | The error string to be filled if there is an error modifying the shader text. |
Reimplemented from lsg::CShaderTranslationProcessorBase.
CVector<CDirectX11CBuffer> lsg::CDirectX11ShaderTranslator::m_vCBuffers [protected] |
Array of cbuffers.