Date
1 - 1 of 1
Is the const type qualifier only in CG?
Malcolm Humphreys <malcolmh...@...>
Is the 'const' qualifier in glsl? I have to change the following to get the glsl shader to compile on OSX.
I'm cool to add another if glsl or cg block, just wondering if this could be something else.
.malcolm
diff --git a/src/core/Processor.cpp b/src/core/Processor.cpp
index 2f0f83b..c22770f 100644
--- a/src/core/Processor.cpp
+++ b/src/core/Processor.cpp
@@ -81,7 +81,7 @@ OCIO_NAMESPACE_ENTER
}
else throw Exception("Unsupported shader language.");
- shader << " const uniform sampler3D " << lut3dName << ") \n";
+ shader << " in sampler3D " << lut3dName << ") \n";
shader << "{" << "\n";
if(lang == GPU_LANGUAGE_CG)
I'm cool to add another if glsl or cg block, just wondering if this could be something else.
.malcolm
diff --git a/src/core/Processor.cpp b/src/core/Processor.cpp
index 2f0f83b..c22770f 100644
--- a/src/core/Processor.cpp
+++ b/src/core/Processor.cpp
@@ -81,7 +81,7 @@ OCIO_NAMESPACE_ENTER
}
else throw Exception("Unsupported shader language.");
- shader << " const uniform sampler3D " << lut3dName << ") \n";
+ shader << " in sampler3D " << lut3dName << ") \n";
shader << "{" << "\n";
if(lang == GPU_LANGUAGE_CG)