#include <VOP_CodeGenerator.h>
Public Member Functions | |
| VOP_CodeGenerator (OP_Network *owner, VEX_ContextType vextype, RSL_ContextType rsltype, int mininputs, int maxinputs) | |
| virtual | ~VOP_CodeGenerator (void) |
| OP_OperatorFilter * | getOperatorFilter () |
| UT_ErrorManager & | getErrorManager () |
| void | beforeAddNode (OP_Node *node) |
| void | afterAddNode (OP_Node *node) |
| void | appendCompileErrors (UT_WorkBuffer &text, int verbose, bool addseparator) |
| void | ownerChanged (OP_EventType reason, void *data) |
| void | ownerFinishedLoadingNetwork () |
| void | generateVopErrors () |
| void | updateExportedParameters () |
| bool | getVariableString (int index, UT_String &value) |
| const char * | getEnglishName () |
| const char * | getFunctionPath (UT_WorkBuffer &storage) const |
| int | getMinimumInputs () const |
| int | getMaximumInputs () const |
| void | getInternalOperatorInfo (OP_OTLDefinition &info) |
| void | getInternalScriptDefinition (UT_String &definition) |
| void | setVexCodeDirty () |
| void | outputVexCode (ostream &os, const char *shadername) |
| void | outputVflCode (ostream &os, const char *shadername, bool skipheader=false) |
| void | generateRslObject (UT_String &ofile, const char *cache_directory, const char *renderer, int major_version, int minor_version, const char *shaderpath, const char *shadername, bool ignore_dirty_flag, UT_String *error_return) |
| void | getParameterNodes (VOP_CodeParmList &list, bool includeInvisible) |
| OP_Node * | getOutputNode () const |
| const char * | getCompiler (UT_String &compiler, fpreal now, const char *defcompiler) |
| const char * | getCompiler (UT_WorkBuffer &wbuf, fpreal now, const char *defcompiler) |
| const UT_String & | getCompilerErrors () const |
| const VOP_Language * | getLanguage () const |
| VEX_ContextType | getVexContextType () const |
| RSL_ContextType | getRslContextType () const |
| VOP_CodeCompilerArgs * | getCompilerArgs () |
| void | setLockedCompiledCode (const char *code) |
| void | setLockedCompiledDs (const char *ds) |
| const char * | getFunctionName (UT_WorkBuffer &storage) const |
| const char * | getInternalFunctionName (UT_WorkBuffer &storage) const |
Static Public Member Functions | |
| static void | installCommands () |
| static bool | convertVopOpToVopOpType (OP_Node *node, UT_String &err) |
| static bool | forceCompile (OP_Node *node) |
| static int | forceCompile (void *data, int, float, const PRM_Template *) |
Static Public Attributes | |
| static CH_LocalVariable | theLocalVariables [] |
| static PRM_Name | theVopCompilerName |
| static PRM_Default | theVopCompilerVexDefault |
| static PRM_Default | theVopCompilerRslDefault |
| static PRM_ChoiceList | theVopCompilerChoices |
| static PRM_Name | theVopForceCompileName |
Definition at line 158 of file VOP_CodeGenerator.h.
| VOP_CodeGenerator::VOP_CodeGenerator | ( | OP_Network * | owner, | |
| VEX_ContextType | vextype, | |||
| RSL_ContextType | rsltype, | |||
| int | mininputs, | |||
| int | maxinputs | |||
| ) |
| virtual VOP_CodeGenerator::~VOP_CodeGenerator | ( | void | ) | [virtual] |
| void VOP_CodeGenerator::afterAddNode | ( | OP_Node * | node | ) |
| void VOP_CodeGenerator::appendCompileErrors | ( | UT_WorkBuffer & | text, | |
| int | verbose, | |||
| bool | addseparator | |||
| ) |
| void VOP_CodeGenerator::beforeAddNode | ( | OP_Node * | node | ) |
| static int VOP_CodeGenerator::forceCompile | ( | void * | data, | |
| int | , | |||
| float | , | |||
| const PRM_Template * | ||||
| ) | [static] |
| static bool VOP_CodeGenerator::forceCompile | ( | OP_Node * | node | ) | [static] |
| void VOP_CodeGenerator::generateRslObject | ( | UT_String & | ofile, | |
| const char * | cache_directory, | |||
| const char * | renderer, | |||
| int | major_version, | |||
| int | minor_version, | |||
| const char * | shaderpath, | |||
| const char * | shadername, | |||
| bool | ignore_dirty_flag, | |||
| UT_String * | error_return | |||
| ) |
| void VOP_CodeGenerator::generateVopErrors | ( | ) |
| const char* VOP_CodeGenerator::getCompiler | ( | UT_WorkBuffer & | wbuf, | |
| fpreal | now, | |||
| const char * | defcompiler | |||
| ) |
| const char* VOP_CodeGenerator::getCompiler | ( | UT_String & | compiler, | |
| fpreal | now, | |||
| const char * | defcompiler | |||
| ) |
| VOP_CodeCompilerArgs* VOP_CodeGenerator::getCompilerArgs | ( | ) | [inline] |
Definition at line 236 of file VOP_CodeGenerator.h.
| const UT_String& VOP_CodeGenerator::getCompilerErrors | ( | ) | const [inline] |
Definition at line 226 of file VOP_CodeGenerator.h.
| const char* VOP_CodeGenerator::getEnglishName | ( | ) |
| UT_ErrorManager& VOP_CodeGenerator::getErrorManager | ( | ) |
| const char* VOP_CodeGenerator::getFunctionName | ( | UT_WorkBuffer & | storage | ) | const |
The function name is mangled for some renderers (i.e. RSL) since basing the function name on the node name is not safe. However, some places require the node name -- unmangled (i.e. dialog scripts).
| const char* VOP_CodeGenerator::getFunctionPath | ( | UT_WorkBuffer & | storage | ) | const |
The function path is the leading path to the shader
| const char* VOP_CodeGenerator::getInternalFunctionName | ( | UT_WorkBuffer & | storage | ) | const |
The function name is mangled for some renderers (i.e. RSL) since basing the function name on the node name is not safe. However, some places require the node name -- unmangled (i.e. dialog scripts).
| void VOP_CodeGenerator::getInternalOperatorInfo | ( | OP_OTLDefinition & | info | ) |
| void VOP_CodeGenerator::getInternalScriptDefinition | ( | UT_String & | definition | ) |
| const VOP_Language* VOP_CodeGenerator::getLanguage | ( | ) | const [inline] |
Definition at line 230 of file VOP_CodeGenerator.h.
| int VOP_CodeGenerator::getMaximumInputs | ( | ) | const |
| int VOP_CodeGenerator::getMinimumInputs | ( | ) | const |
| OP_OperatorFilter* VOP_CodeGenerator::getOperatorFilter | ( | ) |
| OP_Node* VOP_CodeGenerator::getOutputNode | ( | ) | const |
| void VOP_CodeGenerator::getParameterNodes | ( | VOP_CodeParmList & | list, | |
| bool | includeInvisible | |||
| ) |
| RSL_ContextType VOP_CodeGenerator::getRslContextType | ( | ) | const [inline] |
Definition at line 234 of file VOP_CodeGenerator.h.
| bool VOP_CodeGenerator::getVariableString | ( | int | index, | |
| UT_String & | value | |||
| ) |
| VEX_ContextType VOP_CodeGenerator::getVexContextType | ( | ) | const [inline] |
Definition at line 232 of file VOP_CodeGenerator.h.
| static void VOP_CodeGenerator::installCommands | ( | ) | [static] |
| void VOP_CodeGenerator::outputVexCode | ( | ostream & | os, | |
| const char * | shadername | |||
| ) |
| void VOP_CodeGenerator::outputVflCode | ( | ostream & | os, | |
| const char * | shadername, | |||
| bool | skipheader = false | |||
| ) |
| void VOP_CodeGenerator::ownerChanged | ( | OP_EventType | reason, | |
| void * | data | |||
| ) |
| void VOP_CodeGenerator::ownerFinishedLoadingNetwork | ( | ) |
| void VOP_CodeGenerator::setLockedCompiledCode | ( | const char * | code | ) |
| void VOP_CodeGenerator::setLockedCompiledDs | ( | const char * | ds | ) |
| void VOP_CodeGenerator::setVexCodeDirty | ( | ) |
| void VOP_CodeGenerator::updateExportedParameters | ( | ) |
Definition at line 247 of file VOP_CodeGenerator.h.
Definition at line 262 of file VOP_CodeGenerator.h.
Definition at line 259 of file VOP_CodeGenerator.h.
Definition at line 261 of file VOP_CodeGenerator.h.
Definition at line 260 of file VOP_CodeGenerator.h.
Definition at line 263 of file VOP_CodeGenerator.h.
1.5.9