A GPU computation which transfers a vbo range specified by src and name to the given range. More...
Public Member Functions | |
HDST_API | HdStCopyComputationGPU (HdBufferArrayRangeSharedPtr const &src, TfToken const &name) |
virtual HDST_API void | Execute (HdBufferArrayRangeSharedPtr const &range, HdResourceRegistry *resourceRegistry) override |
Execute computation. More... | |
virtual HDST_API int | GetNumOutputElements () const override |
Returns the size of its destination buffer (located by range argument of Execute()). More... | |
virtual HDST_API void | GetBufferSpecs (HdBufferSpecVector *specs) const override |
Add the buffer spec for this computation into given bufferspec vector. More... | |
Public Member Functions inherited from HdComputation | |
bool | IsValid () |
This function is needed as HdComputation shares a templatized interface with HdBufferSource. More... | |
A GPU computation which transfers a vbo range specified by src and name to the given range.
Definition at line 39 of file copyComputation.h.
|
overridevirtual |
Execute computation.
Implements HdComputation.
|
overridevirtual |
Add the buffer spec for this computation into given bufferspec vector.
Caller has to allocate the destination buffer with respect to the BufferSpecs, and passes the range when registering the computation.
Implements HdComputation.
|
overridevirtual |
Returns the size of its destination buffer (located by range argument of Execute()).
This function will be called after all HdBufferSources have been resolved and commited, so it can use the result of those buffer source results. Returning 0 means it doesn't need to resize.
Implements HdComputation.