24 #ifndef PXR_IMAGING_HDX_COLORIZE_SELECTION_TASK_H
25 #define PXR_IMAGING_HDX_COLORIZE_SELECTION_TASK_H
105 void _ColorizeSelection();
111 bool _UpdateParameterBuffer();
123 struct _ParameterBuffer
128 int enableOutline = 0;
132 bool operator==(
const _ParameterBuffer& other)
const {
133 return texelSize == other.texelSize &&
134 enableOutline == other.enableOutline &&
135 radius == other.radius;
144 VtIntArray _selectionOffsets;
150 uint8_t *_outputBuffer;
151 size_t _outputBufferSize;
154 std::unique_ptr<class HdxFullscreenShader> _compositor;
156 _ParameterBuffer _parameterData;
158 bool _pipelineCreated;
174 #endif // PXR_IMAGING_HDX_COLORIZE_SELECTION_TASK_H
unsigned int outlineRadius
HDX_API bool operator==(const HdxColorizeSelectionTaskParams &lhs, const HdxColorizeSelectionTaskParams &rhs)
HDX_API std::ostream & operator<<(std::ostream &out, const HdxColorizeSelectionTaskParams &pv)
int HgiHandle< class HgiTexture > HgiTextureHandle
bool enableLocateHighlight
GLint GLsizei GLsizei height
GLint GLint GLsizei GLint GLenum format
bool operator!=(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Inequality operator, does exact floating point comparisons.
std::unordered_map< TfToken, VtValue, TfToken::HashFunctor > HdTaskContext
HDX_API void Execute(HdTaskContext *ctx) override
Execute the task.
HDX_API void Prepare(HdTaskContext *ctx, HdRenderIndex *renderIndex) override
Prepare the render pass resources.
HDX_API HdxColorizeSelectionTask(HdSceneDelegate *delegate, SdfPath const &id)
SdfPath instanceIdBufferPath
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
HDX_API ~HdxColorizeSelectionTask() override
#define PXR_NAMESPACE_CLOSE_SCOPE
bool IsConverged() const override
Hooks for progressive rendering.
bool enableSelectionHighlight
HDX_API void _Sync(HdSceneDelegate *delegate, HdTaskContext *ctx, HdDirtyBits *dirtyBits) override
Sync the render pass resources.
HdxColorizeSelectionTaskParams()
bool operator==(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Equality operator, does exact floating point comparisons.
SdfPath elementIdBufferPath