HDK
|
#include <VOP_CodeGenerator.h>
Public Member Functions | |
VOP_ShaderSpaceInfo (VOP_Node *shader_node, const char *shader_name) | |
const UT_Map< VOP_Node *, UT_StringHolder > & | getNestedSubnetShaders () const |
void | addSubShader (VOP_Node *sub_shader, const char *name) const |
bool | shouldAddSubShader (VOP_Node *shader_node) const |
void | replaceSubShaderNamePrefix (UT_String &sub_shader_name, VOP_Node *sub_shader) const |
Replaces the scene-specific prefix with an hda-specific one. More... | |
void | removeShaderNamePrefix (UT_String &sub_shader_name) const |
Removes the hda-specific prefix. More... | |
=========================================================================== Class containing info about a scope level at which to generate/compile the nested shaders. Usually they use global level, implying that they use full node path as shader function name. But when compiling HDAs, the shaders nested inside them are anchored to the HDA and should use relative path as shader function name. Also, this class can store all the nested shaders that need own compilation.
Definition at line 833 of file VOP_CodeGenerator.h.
VOP_ShaderSpaceInfo::VOP_ShaderSpaceInfo | ( | VOP_Node * | shader_node, |
const char * | shader_name | ||
) |
Definition at line 841 of file VOP_CodeGenerator.h.
|
inline |
Definition at line 839 of file VOP_CodeGenerator.h.
Removes the hda-specific prefix.
void VOP_ShaderSpaceInfo::replaceSubShaderNamePrefix | ( | UT_String & | sub_shader_name, |
VOP_Node * | sub_shader | ||
) | const |
Replaces the scene-specific prefix with an hda-specific one.
bool VOP_ShaderSpaceInfo::shouldAddSubShader | ( | VOP_Node * | shader_node | ) | const |
Returns true if the node generates code that should be isolated to the space.