HDK
|
#include <compExtCompInputSource.h>
Public Member Functions | |
HD_API | Hd_CompExtCompInputSource (const TfToken &inputName, const HdExtCompCpuComputationSharedPtr &source, const TfToken &sourceOutputName) |
virtual HD_API | ~Hd_CompExtCompInputSource ()=default |
virtual HD_API bool | Resolve () override |
Returns true once the source computation has been resolved. More... | |
virtual HD_API const VtValue & | GetValue () const override |
Obtains the value of the output from the source computation. More... | |
![]() | |
HD_API | Hd_ExtCompInputSource (const TfToken &inputName) |
Constructs the input binding with the name inputName. More... | |
virtual HD_API | ~Hd_ExtCompInputSource ()=default |
virtual HD_API TfToken const & | GetName () const final |
Returns the name of the input. More... | |
![]() | |
virtual HD_API void const * | GetData () const override |
Following interfaces will be called after Resolve. More... | |
virtual HD_API size_t | ComputeHash () const override |
Computes and returns a hash value for the underlying data. More... | |
virtual HD_API size_t | GetNumElements () const override |
virtual HD_API HdTupleType | GetTupleType () const override |
Returns the data type and count (array size) for this buffer source. More... | |
virtual HD_API void | GetBufferSpecs (HdBufferSpecVector *specs) const override |
![]() | |
HdBufferSource () | |
virtual HD_API | ~HdBufferSource () |
bool | IsResolved () const |
Returns true it this computation has already been resolved. More... | |
bool | HasResolveError () const |
Returns true if an error occurred during resolve. More... | |
HD_API bool | IsValid () const |
virtual HD_API bool | HasPreChainedBuffer () const |
Returns true if this buffer has a pre-chained buffer. More... | |
virtual HD_API HdBufferSourceSharedPtr | GetPreChainedBuffer () const |
Returns the pre-chained buffer. More... | |
virtual HD_API bool | HasChainedBuffer () const |
Returns true if this buffer has any chained buffer(s) More... | |
virtual HD_API HdBufferSourceSharedPtrVector | GetChainedBuffers () const |
Returns the vector of chained buffers. More... | |
Protected Member Functions | |
virtual bool | _CheckValid () const override |
Returns true if the binding is successful. More... | |
![]() | |
void | _SetResolved () |
void | _SetResolveError () |
bool | _TryLock () |
An Hd Buffer Source Computation that is used to bind an ExtComputation input to a specific output of another ExtComputation.
Definition at line 46 of file compExtCompInputSource.h.
HD_API Hd_CompExtCompInputSource::Hd_CompExtCompInputSource | ( | const TfToken & | inputName, |
const HdExtCompCpuComputationSharedPtr & | source, | ||
const TfToken & | sourceOutputName | ||
) |
Constructs the computation, binding inputName to sourceOutputName on buffer source representation of the source computation.
|
virtualdefault |
|
overrideprotectedvirtual |
Returns true if the binding is successful.
Implements HdBufferSource.
Obtains the value of the output from the source computation.
Implements Hd_ExtCompInputSource.
|
overridevirtual |
Returns true once the source computation has been resolved.
Implements HdBufferSource.