Interface class that defines the execution environment for the client to run a computation.
Hydra implementation of the HdExtComputationContext public interface.
virtual HD_API void SetOutputValue(const TfToken &name, const VtValue &output) override
Sets the value of the specified output.
virtual HD_API const VtValue * GetOptionalInputValuePtr(const TfToken &name) const override
Obtains the value of an named input to the computation.
virtual HD_API void RaiseComputationError() override
Called to indicate an error occurred while executing a computation so that it's output are invalid.
HD_API void SetInputValue(const TfToken &name, const VtValue &input)
Adds the named input to the execution environment.
HD_API bool GetOutputValue(const TfToken &name, VtValue *output) const
Fetches the named output from the execution environment.
HD_API bool HasComputationError()
returns true is an error occur in processing, such that the outputs are invalid.
virtual HD_API const VtValue & GetInputValue(const TfToken &name) const override
Obtains the value of an named input to the computation.