]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/finalize.cpp
Support compute shaders in the shader compiler
[libs/gl.git] / source / glsl / finalize.cpp
index 85a6b07adf8f00591348ed63d744299e8567ab39..94052432296e2dc1dc629e68ad4618b595f4d63d 100644 (file)
@@ -473,6 +473,13 @@ bool StructuralFeatureConverter::supports_stage(Stage::Type st) const
                else
                        return check_version(Version(1, 50));
        }
+       else if(st==Stage::COMPUTE)
+       {
+               if(features.target_api==OPENGL_ES)
+                       return check_version(Version(3, 10));
+               else
+                       return check_version(Version(4, 30));
+       }
        else
                return true;
 }