|
|
| ShaderNode (const ShaderGraph *parent, const string &name) |
| | Constructor.
|
| |
| virtual bool | isAGraph () const |
| | Return true if this node is a graph.
|
| |
| const ShaderGraph * | getParent () const |
| | Return the parent graph that owns this node.
|
| |
|
void | setClassification (uint32_t c) |
| | Set classification bits for this node, replacing any previous set bits.
|
| |
|
uint32_t | getClassification () const |
| | Get classification bits set for this node.
|
| |
|
void | addClassification (uint32_t c) |
| | Add classification bits to this node.
|
| |
|
bool | hasClassification (uint32_t c) const |
| | Return true if this node matches the given classification.
|
| |
|
const string & | getName () const |
| | Return the name of this node.
|
| |
|
const string & | getUniqueId () const |
| | Return the unique identifier for this node, used as its key in the parent graph's node map.
|
| |
|
const ShaderNodeImpl & | getImplementation () const |
| | Return the implementation used for this node.
|
| |
|
void | initialize (const Node &node, const NodeDef &nodeDef, GenContext &context) |
| | Initialize this shader node with all required data from the given node and nodedef.
|
| |
|
ShaderInput * | addInput (const string &name, TypeDesc type) |
| | Add inputs/outputs.
|
| |
|
ShaderOutput * | addOutput (const string &name, TypeDesc type) |
| |
|
size_t | numInputs () const |
| | Get number of inputs/outputs.
|
| |
|
size_t | numOutputs () const |
| |
|
ShaderInput * | getInput (size_t index) |
| | Get inputs/outputs by index.
|
| |
|
ShaderOutput * | getOutput (size_t index=0) |
| |
|
const ShaderInput * | getInput (size_t index) const |
| |
|
const ShaderOutput * | getOutput (size_t index=0) const |
| |
|
ShaderInput * | getInput (const string &name) |
| | Get inputs/outputs by name.
|
| |
|
ShaderOutput * | getOutput (const string &name) |
| |
|
const ShaderInput * | getInput (const string &name) const |
| |
|
const ShaderOutput * | getOutput (const string &name) const |
| |
|
const vector< ShaderInput * > & | getInputs () const |
| | Get vector of inputs/outputs.
|
| |
|
const vector< ShaderOutput * > & | getOutputs () const |
| |
|
void | setMetadata (ShaderMetadataVecPtr metadata) |
| | Set the metadata vector.
|
| |
|
ShaderMetadataVecPtr | getMetadata () |
| | Get the metadata vector.
|
| |
|
const ShaderMetadataVecPtr & | getMetadata () const |
| | Get the metadata vector.
|
| |
| bool | isEditable (const ShaderInput &input) const |
| | Returns true if an input is editable by users.
|
| |
| bool | isEditable (const ShaderGraphInputSocket &input) const |
| | Returns true if a graph input is accessible by users.
|
| |
Class representing a node in the shader generation DAG.