7#ifndef HDX_COLORCHANNEL_TASK_H
8#define HDX_COLORCHANNEL_TASK_H
11#include "pxr/usd/sdf/path.h"
12#include "pxr/imaging/hdx/api.h"
13#include "pxr/imaging/hdx/task.h"
14#include "pxr/imaging/hdx/tokens.h"
15#include "pxr/imaging/hgi/graphicsCmds.h"
17PXR_NAMESPACE_OPEN_SCOPE
43 void Execute(HdTaskContext* ctx)
override;
50 HdDirtyBits* dirtyBits)
override;
59 bool _UpdateParameterBuffer(
float screenSizeX,
float screenSizeY);
63 struct _ParameterBuffer
67 bool operator==(
const _ParameterBuffer& other)
const {
68 return channel == other.channel &&
69 screenSize[0] == other.screenSize[0] &&
70 screenSize[1] == other.screenSize[1];
74 std::unique_ptr<class HdxFullscreenShader> _compositor;
75 _ParameterBuffer _parameterData;
93 TfToken channel = HdxColorChannelTokens->color;
107PXR_NAMESPACE_CLOSE_SCOPE
The render index is part of the Hydra 1.0 API and is only used for emulation purposes so that HdScene...
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.
ColorChannelTask parameters.