X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fdeviceinfo.h;h=e121a8cac2c7b65d74af87d085f262ce4a42791e;hb=190a7e11237351f6b730c28f7b16f183e8adc69c;hp=1eb120ff2ec509921ed2dfa84fbcbce92393953d;hpb=6353307898cd397e2bcde13e2448a8a678a60004;p=libs%2Fgl.git diff --git a/source/core/deviceinfo.h b/source/core/deviceinfo.h index 1eb120ff..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; @@ -15,8 +20,20 @@ struct Limits 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