]> git.tdb.fi Git - libs/gl.git/blob - source/glsl/features.h
Make constant id range configurable and avoid duplicates
[libs/gl.git] / source / glsl / features.h
1 #ifndef MSP_GL_SL_FEATURES_H_
2 #define MSP_GL_SL_FEATURES_H_
3
4 #include <msp/gl/extension.h>
5
6 namespace Msp {
7 namespace GL {
8 namespace SL {
9
10 struct Features
11 {
12         GLApi gl_api;
13         Version glsl_version;
14         bool arb_explicit_attrib_location;
15         bool arb_gpu_shader5;
16         bool arb_uniform_buffer_object;
17         bool ext_gpu_shader4;
18         bool ext_texture_array;
19         unsigned max_constant_id;
20
21         Features();
22
23         static Features from_context();
24         static Features all();
25 };
26
27 } // namespace SL
28 } // namespace GL
29 } // namespace Msp
30
31 #endif