HDK
|
A class that compiles a shader and saves it into an existing shader HDA. More...
#include <VOP_HDACodeCompiler.h>
Protected Member Functions | |
void | getContextTypesForCompilation (VOP_ContextTypeList &contexts) const override |
Obtains the context types for which to compile the code. More... | |
void | doCompile (FS_IndexFile *hda, VOP_CodeGenerator *code_generator, VOP_ContextType context_type, const char *section_name, OP_Node *output_node) override |
Compiles the given context type of the source node to the HDA in OTL. More... | |
Protected Member Functions inherited from VOP_ShaderHDACompiler | |
bool | initForShaderCompilation (OP_Node *srcnode) |
Sets up member variables to be ready for compilation. More... | |
bool | compilePrimaryOutputNodes (FS_IndexFile *hda, opui_ScriptMaterialCodeMapper &mapper) |
void | compileMappedNodes (FS_IndexFile *hda, opui_ScriptMaterialCodeMapper &mapper) |
OP_Node * | getNode () const |
VOP_CodeGenerator * | getCodeGenerator () const |
OP_OperatorTable * | getTable () const |
Protected Member Functions inherited from VOP_HDACodeCompiler | |
void | saveVflCodeToSection (FS_IndexFile *hda, OP_Node *shader_node, VOP_CodeGenerator *code_generator, VOP_ContextType context_type, const char *section_name, OP_Node *output_node) |
Saves the code to section. More... | |
bool | isOK () const |
Checks if there was an error during compilation up till now. More... | |
void | setStatus (UT_ErrorSeverity sev, const char *msg, const char *details=0) |
void | clearStatus () |
Additional Inherited Members | |
Static Public Member Functions inherited from VOP_ShaderHDACompiler | |
static void | removeShaderCodeSections (FS_IndexFile *file) |
Utility function for cleaning up HDA of any compiled sections. More... | |
Static Public Member Functions inherited from VOP_HDACodeCompiler | |
static bool | canCompileNode (OP_Node *srcnode) |
static void | removeCodeSections (OP_Node *node, FS_IndexFile *file) |
static bool | updateCodeSections (OP_Node *node, FS_IndexFile *file, UT_String *message) |
A class that compiles a shader and saves it into an existing shader HDA.
Definition at line 362 of file VOP_HDACodeCompiler.h.
VOP_ShaderHDACompilerHDA::VOP_ShaderHDACompilerHDA | ( | ) |
Constructor.
|
overridevirtual |
Compiles a given node to the sections of a given HDA (already existing). This is used for HDAs that have contents network, but also want to store cached vfl/vex code.
srcnode | The node from which to obtain vex code. |
hda | The HDA definition to which save the vfl and vex code. |
Reimplemented from VOP_HDACodeCompiler.
|
overrideprotectedvirtual |
Compiles the given context type of the source node to the HDA in OTL.
Implements VOP_ShaderHDACompiler.
|
overrideprotectedvirtual |
Obtains the context types for which to compile the code.
Implements VOP_ShaderHDACompiler.