24 #ifndef HDX_COLORCORRECTION_TASK_H
25 #define HDX_COLORCORRECTION_TASK_H
115 HdxColorCorrectionTask() =
delete;
116 HdxColorCorrectionTask(
const HdxColorCorrectionTask &) =
delete;
117 HdxColorCorrectionTask &operator =(
const HdxColorCorrectionTask &) =
delete;
120 struct _TextureSamplerDesc {
127 struct _UniformBufferDesc {
130 std::vector<uint8_t>
data;
137 struct _OCIOResources {
138 std::vector<_TextureSamplerDesc> luts;
139 std::vector<_UniformBufferDesc> ubos;
140 std::vector<unsigned char> constantValues;
146 _CreateOpenColorIOResources(
Hgi *hgi,
151 bool _GetUseOcio()
const;
154 bool _CreateShaderResources();
161 bool _CreateBufferResources();
173 bool _CreateAovSampler();
182 void _DestroyShaderProgram();
185 void _PrintCompileErrors();
190 _OCIOResources _ocioResources;
197 struct TextureSamplerInfo
205 std::vector<TextureSamplerInfo> _textureLUTs;
214 std::vector<BufferInfo> _bufferConstants;
219 float _screenSize[2];
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.