zenilib
0.5.3.0
|
#include <BuiltInFunctionEmulator.h>
Public Member Functions | |
BuiltInFunctionEmulator (ShShaderType shaderType) | |
void | Cleanup () |
void | MarkBuiltInFunctionsForEmulation (TIntermNode *root) |
void | OutputEmulatedFunctionDefinition (TInfoSinkBase &out, bool withPrecision) const |
bool | SetFunctionCalled (TOperator op, const TType ¶m) |
bool | SetFunctionCalled (TOperator op, const TType ¶m1, const TType ¶m2) |
Static Public Member Functions | |
static TString | GetEmulatedFunctionName (const TString &name) |
Definition at line 20 of file BuiltInFunctionEmulator.h.
BuiltInFunctionEmulator::BuiltInFunctionEmulator | ( | ShShaderType | shaderType | ) |
Definition at line 268 of file BuiltInFunctionEmulator.cpp.
References SH_FRAGMENT_SHADER.
void BuiltInFunctionEmulator::Cleanup | ( | ) |
Definition at line 394 of file BuiltInFunctionEmulator.cpp.
Referenced by TCompiler::clearResults().
Definition at line 400 of file BuiltInFunctionEmulator.cpp.
References ASSERT.
Referenced by TOutputGLSLBase::visitAggregate(), and TOutputGLSLBase::visitUnary().
void BuiltInFunctionEmulator::MarkBuiltInFunctionsForEmulation | ( | TIntermNode * | root | ) |
Definition at line 385 of file BuiltInFunctionEmulator.cpp.
References ASSERT, and TIntermNode::traverse().
Referenced by TCompiler::compile().
void BuiltInFunctionEmulator::OutputEmulatedFunctionDefinition | ( | TInfoSinkBase & | out, |
bool | withPrecision | ||
) | const |
Definition at line 305 of file BuiltInFunctionEmulator.cpp.
References i.
Referenced by TranslatorESSL::translate(), and TranslatorGLSL::translate().
Definition at line 279 of file BuiltInFunctionEmulator.cpp.
Referenced by SetFunctionCalled().
bool BuiltInFunctionEmulator::SetFunctionCalled | ( | TOperator | op, |
const TType & | param1, | ||
const TType & | param2 | ||
) |
Definition at line 286 of file BuiltInFunctionEmulator.cpp.
References SetFunctionCalled().