]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/features.h
Use default member initializers for simple types
[libs/gl.git] / source / glsl / features.h
index ca74d38abd3d2a2927420589f21af83ac21ea5b6..14cc2b3743ed61cae347c62d90470f3fac9ad3c4 100644 (file)
@@ -9,21 +9,19 @@ namespace SL {
 
 struct Features
 {
-       GraphicsApi target_api;
+       GraphicsApi target_api = OPENGL;
        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();
+       bool arb_enhanced_layouts = false;
+       bool arb_explicit_attrib_location = false;
+       bool arb_explicit_uniform_location = false;
+       bool arb_gpu_shader5 = false;
+       bool arb_separate_shader_objects = false;
+       bool arb_uniform_buffer_object = false;
+       bool ext_gpu_shader4 = false;
+       bool ext_texture_array = false;
+       unsigned constant_id_range = 0x80000000U;
+       unsigned uniform_binding_range = 84;
+       unsigned texture_binding_range = 96;
 
        static Features from_version(const Version &);
        static Features latest();