HDK
|
#include <extComputationContext.h>
Public Member Functions | |
HdExtComputationContext ()=default | |
virtual | ~HdExtComputationContext () |
virtual const VtValue & | GetInputValue (const TfToken &name) const =0 |
virtual const VtValue * | GetOptionalInputValuePtr (const TfToken &name) const =0 |
virtual void | SetOutputValue (const TfToken &name, const VtValue &output)=0 |
virtual void | RaiseComputationError ()=0 |
Interface class that defines the execution environment for the client to run a computation.
Definition at line 37 of file extComputationContext.h.
|
default |
|
virtual |
|
pure virtual |
Obtains the value of an named input to the computation.
The code will issue a coding error and return a empty array if the input is missing or of a different type.
Implemented in HdExtComputationContextInternal.
|
pure virtual |
Obtains the value of an named input to the computation.
If the input isn't present or of a different type nullptr will be returned.
Implemented in HdExtComputationContextInternal.
|
pure virtual |
Called to indicate an error occurred while executing a computation so that its output are invalid.
Implemented in HdExtComputationContextInternal.
|
pure virtual |
Set the value of the specified output.
Implemented in HdExtComputationContextInternal.