24 #ifndef HDX_COLORCHANNEL_TASK_H
25 #define HDX_COLORCHANNEL_TASK_H
66 HdxColorChannelTask() =
delete;
67 HdxColorChannelTask(
const HdxColorChannelTask &) =
delete;
68 HdxColorChannelTask &operator =(
const HdxColorChannelTask &) =
delete;
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;
HDX_API void Prepare(HdTaskContext *ctx, HdRenderIndex *renderIndex) override
Prepare the tasks resources.
HDX_API ~HdxColorChannelTask() override
HDX_API std::ostream & operator<<(std::ostream &out, const HdxColorChannelTaskParams &pv)
bool operator!=(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Inequality operator, does exact floating point comparisons.
HdxColorChannelTaskParams()
std::unordered_map< TfToken, VtValue, TfToken::HashFunctor > HdTaskContext
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
HDX_API bool operator==(const HdxColorChannelTaskParams &lhs, const HdxColorChannelTaskParams &rhs)
#define PXR_NAMESPACE_CLOSE_SCOPE
HDX_API void Execute(HdTaskContext *ctx) override
Execute the color channel task.
bool operator==(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Equality operator, does exact floating point comparisons.
HDX_API void _Sync(HdSceneDelegate *delegate, HdTaskContext *ctx, HdDirtyBits *dirtyBits) override
Sync the render pass resources.