X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fdeviceinfo.h;h=e121a8cac2c7b65d74af87d085f262ce4a42791e;hb=71671ec34b63e3e43fbddb3a49e21b89ba5bbf88;hp=9ea239b17402d5afda4654d3dd7063d328ac3cc6;hpb=2d3113a7dbbe4be2f1d1e8980c1c4e42175163da;p=libs%2Fgl.git diff --git a/source/core/deviceinfo.h b/source/core/deviceinfo.h index 9ea239b1..e121a8ca 100644 --- a/source/core/deviceinfo.h +++ b/source/core/deviceinfo.h @@ -1,9 +1,14 @@ #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; @@ -12,10 +17,23 @@ struct Limits unsigned max_clip_planes; unsigned max_samples; unsigned uniform_buffer_alignment; + 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