]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/deviceinfo.h
Store implementation limits in a central struct
[libs/gl.git] / source / core / deviceinfo.h
diff --git a/source/core/deviceinfo.h b/source/core/deviceinfo.h
new file mode 100644 (file)
index 0000000..9ea239b
--- /dev/null
@@ -0,0 +1,24 @@
+#ifndef MSP_GL_DEVICEINFO_H_
+#define MSP_GL_DEVICEINFO_H_
+
+namespace Msp {
+namespace GL {
+
+struct Limits
+{
+       unsigned max_vertex_attributes;
+       unsigned max_texture_bindings;
+       unsigned max_uniform_bindings;
+       unsigned max_clip_planes;
+       unsigned max_samples;
+       unsigned uniform_buffer_alignment;
+
+       Limits();
+
+       static const Limits &get_global();
+};
+
+} // namespace GL
+} // namespace Msp
+
+#endif