Loading...
Searching...
No Matches
HdStCopyComputationGPU Class Reference

A GPU computation which transfers a vbo range specified by src and name to the given range. More...

#include <copyComputation.h>

+ Inheritance diagram for HdStCopyComputationGPU:

Public Member Functions

HDST_API HdStCopyComputationGPU (HdBufferArrayRangeSharedPtr const &src, TfToken const &name)
 
HDST_API void Execute (HdBufferArrayRangeSharedPtr const &range, HdResourceRegistry *resourceRegistry) override
 
HDST_API int GetNumOutputElements () const override
 Returns the size of its destination buffer (located by range argument of Execute()).
 
HDST_API void GetBufferSpecs (HdBufferSpecVector *specs) const override
 Add the buffer spec for this computation into given bufferspec vector.
 
- Public Member Functions inherited from HdStComputation
virtual void Execute (HdBufferArrayRangeSharedPtr const &range, HdResourceRegistry *resourceRegistry)=0
 Execute computation.
 
virtual int GetNumOutputElements () const =0
 Returns the size of its destination buffer (located by range argument of Execute()).
 
virtual void GetBufferSpecs (HdBufferSpecVector *specs) const =0
 Add the buffer spec for this computation into given bufferspec vector.
 
bool IsValid ()
 This function is needed as HdStComputation shares a templatized interface with HdBufferSource.
 

Detailed Description

A GPU computation which transfers a vbo range specified by src and name to the given range.

Definition at line 41 of file copyComputation.h.

Member Function Documentation

◆ GetBufferSpecs()

HDST_API void GetBufferSpecs ( HdBufferSpecVector *  specs) const
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 HdStComputation.

◆ GetNumOutputElements()

HDST_API int GetNumOutputElements ( ) const
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 HdStComputation.


The documentation for this class was generated from the following file: