X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fglsl%2Ffeatures.h;h=e0d7dd77ceb3982ec6ed60bb543b26799cd9604e;hp=ca74d38abd3d2a2927420589f21af83ac21ea5b6;hb=76cc18518fc8b0b4fa11fda153e7d9b3899ed112;hpb=e6077f9f25b794c174e1017c2c0763e77a6fddda diff --git a/source/glsl/features.h b/source/glsl/features.h index ca74d38a..e0d7dd77 100644 --- a/source/glsl/features.h +++ b/source/glsl/features.h @@ -9,24 +9,22 @@ 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; + 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 = 24; + unsigned texture_binding_range = 16; - Features(); - - static Features from_version(const Version &); - static Features latest(); + static Features from_api_version(GraphicsApi, const Version &); + static Features latest(GraphicsApi); }; } // namespace SL