]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/features.h
Assign bindings to all uniform blocks and sampler uniforms
[libs/gl.git] / source / glsl / features.h
index 8f7a3e7c342eb69d12856c93f1f9af6ae017aaf4..31825c028e47f7400cba36b7c1a9eb19690c9215 100644 (file)
@@ -11,15 +11,22 @@ struct Features
 {
        GLApi gl_api;
        Version glsl_version;
+       bool arb_enhanced_layouts;
        bool arb_explicit_attrib_location;
+       bool arb_explicit_uniform_location;
        bool arb_gpu_shader5;
+       bool arb_separate_shader_objects;
        bool arb_uniform_buffer_object;
        bool ext_gpu_shader4;
        bool ext_texture_array;
+       unsigned constant_id_range;
+       unsigned uniform_binding_range;
+       unsigned texture_binding_range;
 
        Features();
 
        static Features from_context();
+       static Features all();
 };
 
 } // namespace SL