]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/features.cpp
Fix incorrect version for ARB_explicit_attrib_location
[libs/gl.git] / source / glsl / features.cpp
index a174f644fedec10c5b906cbd8a6feda19ed1dc63..54fc6f4e6b4651a29a3d38efd6bc23f2380fccb3 100644 (file)
@@ -16,7 +16,7 @@ Features Features::from_api_version(GraphicsApi api, const Version &ver)
        {
        case OPENGL:
                features.arb_enhanced_layouts = (ver>=Version(4, 40));
-               features.arb_explicit_attrib_location = (ver>=Version(1, 30));
+               features.arb_explicit_attrib_location = (ver>=Version(3, 30));
                features.arb_explicit_uniform_location = (ver>=Version(4, 30));
                features.arb_gpu_shader5 = (ver>=Version(4, 0));
                features.arb_separate_shader_objects = (ver>=Version(4, 10));
@@ -41,6 +41,10 @@ Features Features::from_api_version(GraphicsApi api, const Version &ver)
                features.texture_binding_range = (ver>=Version(3, 20) ? 96 : ver>=Version(3, 10) ? 48 :
                        ver>=Version(3, 0) ? 32 : 8);
                break;
+       case VULKAN:
+               features.uniform_binding_range = 72;
+               features.texture_binding_range = 96;
+               break;
        default:
                throw invalid_argument("Features::from_api_version");
        }
@@ -55,6 +59,8 @@ Features Features::latest(GraphicsApi api)
                return from_api_version(api, Version(4, 60));
        case OPENGL_ES:
                return from_api_version(api, Version(3, 20));
+       case VULKAN:
+               return from_api_version(api, Version(1, 2));
        default:
                throw invalid_argument("Features::latest");
        }