![]() |
|
Parses and evaluates a single expression of "virtual struct conditional grammar". More...
Public Types | |
typedef std::shared_ptr< MatfiltVstructConditionalEvaluator > | Ptr |
Public Member Functions | |
void | Evaluate (const TfToken &nodeId, const TfToken &nodeInputId, const TfToken &upstreamNodeId, const TfToken &upstreamNodeOutput, const NdrTokenVec &shaderTypePriority, HdMaterialNetworkInterface *networkInterface) const |
Runs the conditional actions specified by the parsed inputExpr. More... | |
Static Public Member Functions | |
static Ptr | Parse (const std::string &inputExpr) |
Parses and evaluates a single expression of "virtual struct conditional grammar".
This is used internally by MatfiltResolveVstructs but is available to facilitate unit testing.
Definition at line 49 of file matfiltResolveVstructs.h.
void Evaluate | ( | const TfToken & | nodeId, |
const TfToken & | nodeInputId, | ||
const TfToken & | upstreamNodeId, | ||
const TfToken & | upstreamNodeOutput, | ||
const NdrTokenVec & | shaderTypePriority, | ||
HdMaterialNetworkInterface * | networkInterface | ||
) | const |
Runs the conditional actions specified by the parsed inputExpr.
Because this evaluates the conditional actions (connect, ignore, set constant, copy upstream parameter value), this is sent the context of the current connected nodes as well as the mutable network to directly change.