Fix #121819: OpenColorIO Metal GLSL error with grading curve

This commit is contained in:
Brecht Van Lommel
2024-06-12 17:54:10 +02:00
parent e67c95c8c4
commit f969208405

View File

@@ -204,6 +204,8 @@ static bool createGPUShader(OCIO_GPUShader &shader,
info.define("texture1D", "texture");
info.define("texture2D", "texture");
info.define("texture3D", "texture");
/* Work around unsupported in keyword in Metal GLSL emulation. */
info.define("in", "");
info.typedef_source("ocio_shader_shared.hh");
info.sampler(TEXTURE_SLOT_IMAGE, ImageType::FLOAT_2D, "image_texture");
info.sampler(TEXTURE_SLOT_OVERLAY, ImageType::FLOAT_2D, "overlay_texture");