X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Ffeatures.h;h=ca74d38abd3d2a2927420589f21af83ac21ea5b6;hb=e6077f9f25b794c174e1017c2c0763e77a6fddda;hp=b65a61e2fc8c0690a2e380ca690755c09b47bcba;hpb=c1b42fd479c5ca4cbab258ee0fa5c7cac319f928;p=libs%2Fgl.git diff --git a/source/glsl/features.h b/source/glsl/features.h index b65a61e2..ca74d38a 100644 --- a/source/glsl/features.h +++ b/source/glsl/features.h @@ -1,7 +1,7 @@ #ifndef MSP_GL_SL_FEATURES_H_ #define MSP_GL_SL_FEATURES_H_ -#include +#include namespace Msp { namespace GL { @@ -9,19 +9,24 @@ namespace SL { struct Features { - GLApi gl_api; + GraphicsApi target_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 max_constant_id; + unsigned constant_id_range; + unsigned uniform_binding_range; + unsigned texture_binding_range; Features(); - static Features from_context(); - static Features all(); + static Features from_version(const Version &); + static Features latest(); }; } // namespace SL