24 #ifndef HDX_COLORCORRECTION_TASK_H
25 #define HDX_COLORCORRECTION_TASK_H
114 HdxColorCorrectionTask() =
delete;
115 HdxColorCorrectionTask(
const HdxColorCorrectionTask &) =
delete;
116 HdxColorCorrectionTask &operator =(
const HdxColorCorrectionTask &) =
delete;
119 struct _TextureSamplerDesc {
126 struct _UniformBufferDesc {
129 std::vector<uint8_t>
data;
136 struct _OCIOResources {
137 std::vector<_TextureSamplerDesc> luts;
138 std::vector<_UniformBufferDesc> ubos;
139 std::vector<unsigned char> constantValues;
145 _CreateOpenColorIOResources(
150 _CreateOpenColorIOResourcesImpl(
156 bool _GetUseOcio()
const;
159 bool _CreateShaderResources();
166 bool _CreateBufferResources();
178 bool _CreateAovSampler();
187 void _DestroyShaderProgram();
190 void _PrintCompileErrors();
195 _OCIOResources _ocioResources;
202 struct TextureSamplerInfo
210 std::vector<TextureSamplerInfo> _textureLUTs;
219 std::vector<BufferInfo> _bufferConstants;
224 float _screenSize[2];
226 std::unique_ptr<class WorkDispatcher> _workDispatcher;
friend struct HdxColorCorrectionTask_UboBuilder
GLsizei const GLchar *const * string
int HgiHandle< class HgiTexture > HgiTextureHandle
**But if you need a result
TfToken colorCorrectionMode
GLenum const GLfloat * params
HDX_API void Prepare(HdTaskContext *ctx, HdRenderIndex *renderIndex) override
Prepare the tasks resources.
HDX_API std::ostream & operator<<(std::ostream &out, const HdxColorCorrectionTaskParams &pv)
HDX_API ~HdxColorCorrectionTask() override
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
std::string colorspaceOCIO
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
HDX_API HdxColorCorrectionTaskParams()
#define PXR_NAMESPACE_CLOSE_SCOPE
HDX_API void Execute(HdTaskContext *ctx) override
Execute the color correction task.
HDX_API void _Sync(HdSceneDelegate *delegate, HdTaskContext *ctx, HdDirtyBits *dirtyBits) override
Sync the render pass resources.
bool operator==(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Equality operator, does exact floating point comparisons.