X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Fdeviceinfo.h;h=a95841197a9c604585ec82aed8b039cbff25438e;hp=8550d85ff75f35061e5c5c8c7f7dbe371d2c24b2;hb=fb04f4ef9162f58f494cf4323cf3dc66b2f3d4ac;hpb=8e553af57b712051f47293c971671f4f6a939be2 diff --git a/source/core/deviceinfo.h b/source/core/deviceinfo.h index 8550d85f..a9584119 100644 --- a/source/core/deviceinfo.h +++ b/source/core/deviceinfo.h @@ -6,19 +6,26 @@ namespace Msp { namespace GL { +/** +Contains information about various limits imposed by the graphics device. +*/ 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; - unsigned max_color_attachments; + unsigned max_clip_planes = 6; + unsigned max_vertex_attributes = 16; + unsigned max_texture_bindings = 16; + unsigned max_color_attachments = 8; + unsigned max_samples = 4; + unsigned max_uniform_bindings = 24; + unsigned uniform_buffer_alignment = 256; + float max_anisotropy = 1.0f; Limits(); }; +/** +Contains information about a graphics device. +*/ struct DeviceInfo { Limits limits; @@ -26,6 +33,7 @@ struct DeviceInfo DeviceInfo(); + /** Returns information for the device currently in use. */ static const DeviceInfo &get_global(); };