24 #ifndef PXR_IMAGING_HD_EXT_COMPUTATION_H 25 #define PXR_IMAGING_HD_EXT_COMPUTATION_H 28 #include "pxr/imaging/hd/api.h" 29 #include "pxr/imaging/hd/sceneDelegate.h" 30 #include "pxr/imaging/hd/sprim.h" 32 PXR_NAMESPACE_OPEN_SCOPE
95 HdDirtyBits *dirtyBits)
override;
101 size_t GetDispatchCount()
const;
104 size_t GetElementCount()
const {
return _elementCount; }
108 return _sceneInputNames;
115 HdExtComputationInputDescriptorVector
const &
116 GetComputationInputs()
const {
117 return _computationInputs;
121 HdExtComputationOutputDescriptorVector
const &
122 GetComputationOutputs()
const {
123 return _computationOutputs;
127 const std::string& GetGpuKernelSource()
const {
return _gpuKernelSource; }
130 bool IsInputAggregation()
const;
137 HdDirtyBits *dirtyBits);
140 static bool _IsEnabledSharedExtComputationData();
143 size_t _dispatchCount;
144 size_t _elementCount;
146 HdExtComputationInputDescriptorVector _computationInputs;
147 HdExtComputationOutputDescriptorVector _computationOutputs;
148 std::string _gpuKernelSource;
157 PXR_NAMESPACE_CLOSE_SCOPE
159 #endif // PXR_IMAGING_HD_EXT_COMPUTATION_H Hydra Representation of a Client defined computation.
The HdRenderParam is an opaque (to core Hydra) handle, to an object that is obtained from the render ...
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 thi...
Adapter class providing data exchange with the client scene graph.
The list of outputs changed.
std::vector< TfToken > TfTokenVector
Convenience types.
A path value used to locate objects in layers or scenegraphs.
DirtyBits
Change tracking.
Sprim (state prim) is a base class of managing state for non-drawable scene entity (e....
The number of kernel invocations to execute changed.
A computation input changed value.
The compute kernel binding changed.
The number of elements in the output arrays changed.
A scene input changed value.
The list of inputs or input bindings changed.