X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fcore%2Fdeviceinfo.h;h=8550d85ff75f35061e5c5c8c7f7dbe371d2c24b2;hb=34d956d6890ce7070741667d4864fa798883da72;hp=9ea239b17402d5afda4654d3dd7063d328ac3cc6;hpb=2d3113a7dbbe4be2f1d1e8980c1c4e42175163da;p=libs%2Fgl.git diff --git a/source/core/deviceinfo.h b/source/core/deviceinfo.h index 9ea239b1..8550d85f 100644 --- a/source/core/deviceinfo.h +++ b/source/core/deviceinfo.h @@ -1,6 +1,8 @@ #ifndef MSP_GL_DEVICEINFO_H_ #define MSP_GL_DEVICEINFO_H_ +#include "glsl/features.h" + namespace Msp { namespace GL { @@ -12,10 +14,19 @@ struct Limits unsigned max_clip_planes; unsigned max_samples; unsigned uniform_buffer_alignment; + unsigned max_color_attachments; Limits(); +}; + +struct DeviceInfo +{ + Limits limits; + SL::Features glsl_features; + + DeviceInfo(); - static const Limits &get_global(); + static const DeviceInfo &get_global(); }; } // namespace GL