]> git.tdb.fi Git - libs/gl.git/blob - source/core/deviceinfo.h
Wrap Limits into a DeviceInfo struct
[libs/gl.git] / source / core / deviceinfo.h
1 #ifndef MSP_GL_DEVICEINFO_H_
2 #define MSP_GL_DEVICEINFO_H_
3
4 namespace Msp {
5 namespace GL {
6
7 struct Limits
8 {
9         unsigned max_vertex_attributes;
10         unsigned max_texture_bindings;
11         unsigned max_uniform_bindings;
12         unsigned max_clip_planes;
13         unsigned max_samples;
14         unsigned uniform_buffer_alignment;
15         unsigned max_color_attachments;
16
17         Limits();
18 };
19
20 struct DeviceInfo
21 {
22         Limits limits;
23
24         DeviceInfo();
25
26         static const DeviceInfo &get_global();
27 };
28
29 } // namespace GL
30 } // namespace Msp
31
32 #endif