#ifndef MSP_GL_DEVICEINFO_H_
#define MSP_GL_DEVICEINFO_H_
+#include "glsl/features.h"
+
namespace Msp {
namespace GL {
+/**
+Contains information about various limits imposed by the graphics device.
+*/
struct Limits
{
unsigned max_vertex_attributes;
unsigned max_color_attachments;
Limits();
+};
+
+/**
+Contains information about a graphics device.
+*/
+struct DeviceInfo
+{
+ Limits limits;
+ SL::Features glsl_features;
+
+ DeviceInfo();
- static const Limits &get_global();
+ /** Returns information for the device currently in use. */
+ static const DeviceInfo &get_global();
};
} // namespace GL