First attempt at adding OCIO to nodes

This commit is contained in:
Thomas Wilshaw
2022-02-01 16:12:08 +00:00
parent efa74c72a8
commit ff2eac55a5
12 changed files with 429 additions and 64 deletions
+8
View File
@@ -63,6 +63,8 @@ public:
Blit(shader, job, nullptr, params, clear_destination);
}
void ShaderJobInsertTextures(ColorProcessorPtr color_processor, ShaderJob* job, OCIO::GpuShaderDescRcPtr shader_desc);
enum AlphaAssociated {
kAlphaNone,
kAlphaUnassociated,
@@ -128,6 +130,12 @@ private:
bool GetColorContext(ColorProcessorPtr color_processor, ColorContext* ctx);
bool GetCustomColorContext(ColorProcessorPtr color_processor, ColorContext* ctx,
OCIO::GpuShaderDescRcPtr shader_desc);
bool SetupColorContextTextures(ColorContext& color_ctx, OCIO::ConstGpuShaderDescRcPtr shader_desc,
ColorProcessorPtr color_processor);
void BlitColorManagedInternal(ColorProcessorPtr color_processor, TexturePtr source,
AlphaAssociated source_alpha_association,
Texture* destination, VideoParams params, bool clear_destination,