HDK
|
#include <VOP_Node.h>
Public Member Functions | |
VOP_FunctionArgInfo () | |
void | setTypeInfo (const VOP_TypeInfo &type_info) |
Argument type. More... | |
const VOP_TypeInfo & | getTypeInfo () const |
void | setName (const char *name) |
Argument name. More... | |
const UT_StringHolder & | getName () const |
void | setVarName (const char *var_name) |
Local variable name to use when calling the function. More... | |
const UT_StringHolder & | getVarName () const |
void | setInitCodeStr (const char *init_code) |
const UT_StringHolder & | getInitCodeStr () const |
void | setInputIndex (int input_index) |
Node input index, if argument corresponds to an input; otherwise -1. More... | |
int | getInputIndex () const |
void | setOutputIndex (int output_index) |
Node output index, if argument corresponds to an input; otherwise -1. More... | |
int | getOutputIndex () const |
void | setExported (bool exported) |
True if it's an export (output) shader function parameter. More... | |
bool | isExported () const |
Abstracts information about shader function parameters/arguments. It has two use cases: when declaring and defining a shader function, and when calling a shader function. It always stores shader parameter type and name, but may not store some of the other information for some use cases.
Definition at line 173 of file VOP_Node.h.
VOP_FunctionArgInfo::VOP_FunctionArgInfo | ( | ) |
|
inline |
Definition at line 195 of file VOP_Node.h.
|
inline |
Definition at line 200 of file VOP_Node.h.
|
inline |
Definition at line 185 of file VOP_Node.h.
|
inline |
Definition at line 205 of file VOP_Node.h.
|
inline |
Definition at line 180 of file VOP_Node.h.
const UT_StringHolder& VOP_FunctionArgInfo::getVarName | ( | ) | const |
|
inline |
Definition at line 210 of file VOP_Node.h.
void VOP_FunctionArgInfo::setExported | ( | bool | exported | ) |
True if it's an export (output) shader function parameter.
Expression (ie, RHS of the assignment) to use for initialization of the argument when calling the shader function.
Node input index, if argument corresponds to an input; otherwise -1.
Node output index, if argument corresponds to an input; otherwise -1.
void VOP_FunctionArgInfo::setTypeInfo | ( | const VOP_TypeInfo & | type_info | ) |
Argument type.
Local variable name to use when calling the function.