]> git.tdb.fi Git - libs/gl.git/blob - source/core/deviceinfo.h
Store implementation limits in a central 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
16         Limits();
17
18         static const Limits &get_global();
19 };
20
21 } // namespace GL
22 } // namespace Msp
23
24 #endif