|
Specialization of HdExtComputation which manages inputs as GPU resources. More...
#include <extComputation.h>
Public Member Functions | |
HDST_API | HdStExtComputation (SdfPath const &id) |
Construct a new ExtComputation identified by id. | |
HDST_API void | Sync (HdSceneDelegate *sceneDelegate, HdRenderParam *renderParam, HdDirtyBits *dirtyBits) override |
Synchronizes state from the delegate to this object. | |
HDST_API void | Finalize (HdRenderParam *renderParam) override |
Finalizes object resources. | |
HDST_API HdBufferArrayRangeSharedPtr const & | GetInputRange () const |
Public Member Functions inherited from HdExtComputation | |
HD_API | HdExtComputation (SdfPath const &id) |
Construct a new ExtComputation identified by id. | |
HD_API void | Sync (HdSceneDelegate *sceneDelegate, HdRenderParam *renderParam, HdDirtyBits *dirtyBits) override |
Synchronizes state from the delegate to this object. | |
HD_API HdDirtyBits | GetInitialDirtyBitsMask () const override |
Returns the minimal set of dirty bits to place in the change tracker for use in the first sync of this prim. | |
HD_API size_t | GetDispatchCount () const |
HD_API size_t | GetElementCount () const |
HD_API TfTokenVector const & | GetSceneInputNames () const |
HD_API TfTokenVector | GetOutputNames () const |
HD_API HdExtComputationInputDescriptorVector const & | GetComputationInputs () const |
HD_API HdExtComputationOutputDescriptorVector const & | GetComputationOutputs () const |
HD_API const std::string & | GetGpuKernelSource () const |
HD_API bool | IsInputAggregation () const |
Public Member Functions inherited from HdSprim | |
HD_API | HdSprim (SdfPath const &id) |
SdfPath const & | GetId () const |
Returns the identifier by which this state is known. | |
virtual void | Sync (HdSceneDelegate *sceneDelegate, HdRenderParam *renderParam, HdDirtyBits *dirtyBits)=0 |
Synchronizes state from the delegate to this object. | |
virtual HD_API void | Finalize (HdRenderParam *renderParam) |
Finalizes object resources. | |
virtual HdDirtyBits | GetInitialDirtyBitsMask () const =0 |
Returns the minimal set of dirty bits to place in the change tracker for use in the first sync of this prim. | |
Additional Inherited Members | |
Public Types inherited from HdExtComputation | |
enum | DirtyBits : HdDirtyBits { Clean = 0 , DirtyInputDesc = 1 << 0 , DirtyOutputDesc = 1 << 1 , DirtyElementCount = 1 << 2 , DirtySceneInput = 1 << 3 , DirtyCompInput = 1 << 4 , DirtyKernel = 1 << 5 , DirtyDispatchCount = 1 << 6 , AllDirty } |
Change tracking. More... | |
Protected Member Functions inherited from HdExtComputation | |
HD_API void | _Sync (HdSceneDelegate *sceneDelegate, HdRenderParam *renderParam, HdDirtyBits *dirtyBits) |
Static Protected Member Functions inherited from HdExtComputation | |
static HD_API bool | _IsEnabledSharedExtComputationData () |
Specialization of HdExtComputation which manages inputs as GPU resources.
Definition at line 44 of file extComputation.h.
HDST_API HdStExtComputation | ( | SdfPath const & | id | ) |
Construct a new ExtComputation identified by id.
|
overridevirtual |
Finalizes object resources.
This function might not delete resources, but it should deal with resource ownership so that the sprim is deletable.
Reimplemented from HdSprim.
|
inline |
Definition at line 63 of file extComputation.h.
|
overridevirtual |
Synchronizes state from the delegate to this object.
[in,out] | dirtyBits | On input specifies which state is is dirty and can be pulled from the scene delegate. On output specifies which bits are still dirty and were not cleaned by the sync. |
Reimplemented from HdExtComputation.