]> git.tdb.fi Git - libs/gl.git/blob - source/glsl/features.h
Store constant id limit as range, not max value
[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_enhanced_layouts;
15         bool arb_explicit_attrib_location;
16         bool arb_explicit_uniform_location;
17         bool arb_gpu_shader5;
18         bool arb_separate_shader_objects;
19         bool arb_uniform_buffer_object;
20         bool ext_gpu_shader4;
21         bool ext_texture_array;
22         unsigned constant_id_range;
23
24         Features();
25
26         static Features from_context();
27         static Features all();
28 };
29
30 } // namespace SL
31 } // namespace GL
32 } // namespace Msp
33
34 #endif