"L. Spiro Engine"
Protected Member Functions | Protected Attributes

lsg::CDirectX11ShaderTranslator Class Reference

Translates from the engine shader language to HLSL. More...

#include <LSGDirectX11ShaderTranslator.h>

Inheritance diagram for lsg::CDirectX11ShaderTranslator:
lsg::CShaderTranslationProcessorBase

List of all members.

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< CDirectX11CBufferm_vCBuffers

Detailed Description

Translates from the engine shader language to HLSL.

Class CDirectX11ShaderTranslator Description: Translates from the engine shader language to HLSL.


Member Function Documentation

virtual LSBOOL LSE_CALL lsg::CDirectX11ShaderTranslator::DecodeType ( LSUINT64  _ui64Type,
CString &  _sString 
) [protected, virtual]

Decode a type.

Parameters:
_ui64TypeThe type information.
_sStringThe string to which to print the data.
Returns:
Returns true if there was enough memory to perform the operation.

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.

Parameters:
_ui64QualifierThe type qualifier.
_sStringThe string to which to print the data.
Returns:
Returns true if there was enough memory to perform the operation.

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.

Parameters:
_ncDataAll data needed for the parsing.
Returns:
Returns a LSG_PROCESSING_DIRECTIVE enumerated value indicating whether the processor should go into the sub-nodes of the node or not.

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.

Parameters:
_ncDataAll data needed for the parsing.
Returns:
Returns a LSG_PROCESSING_DIRECTIVE enumerated value indicating whether the processor should go into the sub-nodes of the node or not.

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.

Parameters:
_ncDataAll data needed for the parsing.
Returns:
Returns a LSG_PROCESSING_DIRECTIVE enumerated value indicating whether the processor should go into the sub-nodes of the node or not.

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.

Parameters:
_ncDataAll data needed for the parsing.
Returns:
Returns a LSG_PROCESSING_DIRECTIVE enumerated value indicating whether the processor should go into the sub-nodes of the node or not.

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.

Parameters:
_ncDataAll data needed for the parsing.
Returns:
Returns a LSG_PROCESSING_DIRECTIVE enumerated value indicating whether the processor should go into the sub-nodes of the node or not.

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.

Parameters:
_sShaderThe final string, modifiable in-place.
_sErrorThe error string to be filled if there is an error modifying the shader text.
Returns:
Returns false if an error occurred.

Reimplemented from lsg::CShaderTranslationProcessorBase.


Member Data Documentation

Array of cbuffers.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator