]> git.tdb.fi Git - libs/gl.git/blob - source/core/deviceinfo.h
Change default binding ranges to match lowest OpenGL standard
[libs/gl.git] / source / core / deviceinfo.h
1 #ifndef MSP_GL_DEVICEINFO_H_
2 #define MSP_GL_DEVICEINFO_H_
3
4 #include "glsl/features.h"
5
6 namespace Msp {
7 namespace GL {
8
9 struct Limits
10 {
11         unsigned max_vertex_attributes;
12         unsigned max_texture_bindings;
13         unsigned max_uniform_bindings;
14         unsigned max_clip_planes;
15         unsigned max_samples;
16         unsigned uniform_buffer_alignment;
17         unsigned max_color_attachments;
18
19         Limits();
20 };
21
22 struct DeviceInfo
23 {
24         Limits limits;
25         SL::Features glsl_features;
26
27         DeviceInfo();
28
29         static const DeviceInfo &get_global();
30 };
31
32 } // namespace GL
33 } // namespace Msp
34
35 #endif