24 #ifndef PXR_IMAGING_HDX_SELECTION_TASK_H
25 #define PXR_IMAGING_HDX_SELECTION_TASK_H
28 #include "pxr/imaging/hdx/api.h"
29 #include "pxr/imaging/hdx/version.h"
30 #include "pxr/imaging/hd/task.h"
36 PXR_NAMESPACE_OPEN_SCOPE
42 struct HdxSelectionTaskParams
45 float occludedSelectionOpacity;
51 using HdBufferArrayRangeSharedPtr = std::shared_ptr<class HdBufferArrayRange>;
68 ~HdxSelectionTask()
override;
74 HdDirtyBits* dirtyBits)
override;
79 void Prepare(HdTaskContext* ctx,
84 void Execute(HdTaskContext* ctx)
override;
90 HdxSelectionTaskParams _params;
91 HdBufferArrayRangeSharedPtr _selOffsetBar;
92 HdBufferArrayRangeSharedPtr _selUniformBar;
93 HdBufferArrayRangeSharedPtr _selPointColorsBar;
95 HdxSelectionTask() =
delete;
96 HdxSelectionTask(
const HdxSelectionTask &) =
delete;
97 HdxSelectionTask &operator =(
const HdxSelectionTask &) =
delete;
103 const HdxSelectionTaskParams& pv);
105 bool operator==(
const HdxSelectionTaskParams& lhs,
106 const HdxSelectionTaskParams& rhs);
108 bool operator!=(
const HdxSelectionTaskParams& lhs,
109 const HdxSelectionTaskParams& rhs);
112 PXR_NAMESPACE_CLOSE_SCOPE
114 #endif //PXR_IMAGING_HDX_SELECTION_TASK_H
The Hydra render index is a flattened representation of the client scene graph, which may be composed...
HDX_API void Sync(HdSceneDelegate *delegate, HdTaskContext *ctx, HdDirtyBits *dirtyBits) override
Sync the render pass resources.
AR_API bool operator!=(const ArAssetInfo &lhs, const ArAssetInfo &rhs)
AR_API bool operator==(const ArAssetInfo &lhs, const ArAssetInfo &rhs)
HDX_API void Prepare(HdTaskContext *ctx, HdRenderIndex *renderIndex) override
Prepare the tasks resources.
Adapter class providing data exchange with the client scene graph.
A path value used to locate objects in layers or scenegraphs.
HDX_API void Execute(HdTaskContext *ctx) override
Execute render pass task.
Basic type for a vector of 4 float components.
GF_API std::ostream & operator<<(std::ostream &, const GfBBox3d &)
Output a GfBBox3d using the format [(range) matrix zeroArea].
The SelectionTask is responsible for setting up render pass global buffers for selection and depositi...