All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HdStExtComputation Class Reference

#include <extComputation.h>

+ Inheritance diagram for HdStExtComputation:

Public Member Functions

HDST_API HdStExtComputation (SdfPath const &id)
 Construct a new ExtComputation identified by id. More...
HDST_API ~HdStExtComputation () override
HDST_API void Sync (HdSceneDelegate *sceneDelegate, HdRenderParam *renderParam, HdDirtyBits *dirtyBits) override
HDST_API void Finalize (HdRenderParam *renderParam) override
const & 
GetInputRange () const
- Public Member Functions inherited from HdExtComputation
HD_API HdExtComputation (SdfPath const &id)
 Construct a new ExtComputation identified by id. More...
HD_API ~HdExtComputation () override
HD_API HdDirtyBits GetInitialDirtyBitsMask () const override
HD_API size_t GetDispatchCount () const
HD_API size_t GetElementCount () const
HD_API TfTokenVector const & GetSceneInputNames () const
HD_API TfTokenVector GetOutputNames () const
const & 
GetComputationInputs () const
const & 
GetComputationOutputs () const
HD_API const std::stringGetGpuKernelSource () const
HD_API bool IsInputAggregation () const
- Public Member Functions inherited from HdSprim
HD_API HdSprim (SdfPath const &id)
virtual HD_API ~HdSprim ()
SdfPath const & GetId () const

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,
- 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 ()

Detailed Description

Specialization of HdExtComputation which manages inputs as GPU resources.

Definition at line 44 of file extComputation.h.

Constructor & Destructor Documentation

HDST_API HdStExtComputation::HdStExtComputation ( SdfPath const &  id)

Construct a new ExtComputation identified by id.

HDST_API HdStExtComputation::~HdStExtComputation ( )

Member Function Documentation

HDST_API void HdStExtComputation::Finalize ( HdRenderParam renderParam)

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.

HDST_API HdBufferArrayRangeSharedPtr const& HdStExtComputation::GetInputRange ( ) const

Definition at line 63 of file extComputation.h.

HDST_API void HdStExtComputation::Sync ( HdSceneDelegate sceneDelegate,
HdRenderParam renderParam,
HdDirtyBits dirtyBits 

Synchronizes state from the delegate to this object.

[in,out]dirtyBitsOn 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.

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