24#ifndef HDX_COLORCHANNEL_TASK_H
25#define HDX_COLORCHANNEL_TASK_H
28#include "pxr/usd/sdf/path.h"
29#include "pxr/imaging/hdx/api.h"
30#include "pxr/imaging/hdx/task.h"
31#include "pxr/imaging/hdx/tokens.h"
32#include "pxr/imaging/hgi/graphicsCmds.h"
34PXR_NAMESPACE_OPEN_SCOPE
56 void Execute(HdTaskContext* ctx)
override;
63 HdDirtyBits* dirtyBits)
override;
72 bool _UpdateParameterBuffer(
float screenSizeX,
float screenSizeY);
75 void _ApplyColorChannel();
79 struct _ParameterBuffer
83 bool operator==(
const _ParameterBuffer& other)
const {
84 return channel == other.channel &&
85 screenSize[0] == other.screenSize[0] &&
86 screenSize[1] == other.screenSize[1];
90 std::unique_ptr<class HdxFullscreenShader> _compositor;
91 _ParameterBuffer _parameterData;
109 TfToken channel = HdxColorChannelTokens->color;
123PXR_NAMESPACE_CLOSE_SCOPE
The Hydra render index is a flattened representation of the client scene graph, which may be composed...
Adapter class providing data exchange with the client scene graph.
A task for choosing a color channel for display.
HDX_API void _Sync(HdSceneDelegate *delegate, HdTaskContext *ctx, HdDirtyBits *dirtyBits) override
Sync the render pass resources.
HDX_API void Prepare(HdTaskContext *ctx, HdRenderIndex *renderIndex) override
Prepare the tasks resources.
HDX_API void Execute(HdTaskContext *ctx) override
Execute the color channel task.
Base class for (some) tasks in Hdx that provides common progressive rendering and Hgi functionality.
A path value used to locate objects in layers or scenegraphs.
Token for efficient comparison, assignment, and hashing of known strings.
GF_API std::ostream & operator<<(std::ostream &, const GfBBox3d &)
Output a GfBBox3d using the format [(range) matrix zeroArea].
ColorChannelTask parameters.