diff --git a/src/Magnum/Platform/magnum-info.cpp b/src/Magnum/Platform/magnum-info.cpp index 8c050ab05..5ec2ff5bb 100644 --- a/src/Magnum/Platform/magnum-info.cpp +++ b/src/Magnum/Platform/magnum-info.cpp @@ -40,8 +40,16 @@ #include "Magnum/Extensions.h" #include "Magnum/Framebuffer.h" #include "Magnum/Mesh.h" +#ifndef MAGNUM_TARGET_GLES +#include "Magnum/MultisampleTexture.h" +#include "Magnum/RectangleTexture.h" +#endif #include "Magnum/Renderbuffer.h" #include "Magnum/Shader.h" +#include "Magnum/Texture.h" +#ifndef MAGNUM_TARGET_GLES2 +#include "Magnum/TextureArray.h" +#endif #ifndef CORRADE_TARGET_NACL #include "Magnum/Platform/WindowlessGlxApplication.h" #else @@ -252,6 +260,13 @@ MagnumInfo::MagnumInfo(const Arguments& arguments): Platform::WindowlessApplicat #ifndef MAGNUM_TARGET_GLES2 _l(AbstractTexture::maxLodBias()) #endif + #ifndef MAGNUM_TARGET_GLES + _l(Texture1D::maxSize()) + #endif + _l(Texture2D::maxSize()) + #ifndef MAGNUM_TARGET_GLES2 + _l(Texture3D::maxSize()) + #endif #ifndef MAGNUM_TARGET_GLES if(c->isExtensionSupported()) { @@ -337,11 +352,30 @@ MagnumInfo::MagnumInfo(const Arguments& arguments): Platform::WindowlessApplicat _l(Shader::maxTessellationEvaluationOutputComponents()) } + if(c->isExtensionSupported()) { + _h(ARB::texture_buffer_object) + + _l(BufferTexture::maxSize()) + } + if(c->isExtensionSupported()) { _h(ARB::texture_buffer_range) _l(BufferTexture::offsetAlignment()) } + + if(c->isExtensionSupported()) { + _h(ARB::texture_multisample) + + _l(MultisampleTexture2D::maxSize()) + _l(MultisampleTexture2DArray::maxSize()) + } + + if(c->isExtensionSupported()) { + _h(ARB::texture_rectangle) + + _l(RectangleTexture::maxSize()) + } #endif /** @todo Somehow sort the following into previous list for ES3 */ @@ -387,6 +421,20 @@ MagnumInfo::MagnumInfo(const Arguments& arguments): Platform::WindowlessApplicat _l(AbstractShaderProgram::minTexelOffset()) _l(AbstractShaderProgram::maxTexelOffset()) } + + #ifndef MAGNUM_TARGET_GLES + if(c->isExtensionSupported()) + #endif + { + #ifndef MAGNUM_TARGET_GLES + _h(EXT::texture_array) + #endif + + #ifndef MAGNUM_TARGET_GLES + _l(Texture1DArray::maxSize()) + #endif + _l(Texture2DArray::maxSize()) + } #endif if(c->isExtensionSupported()) { @@ -403,6 +451,14 @@ MagnumInfo::MagnumInfo(const Arguments& arguments): Platform::WindowlessApplicat _l(DebugMessage::maxMessageLength()) } + #ifdef MAGNUM_TARGET_GLES2 + if(c->isExtensionSupported()) { + _h(OES::texture_3D) + + _l(Texture3D::maxSize()) + } + #endif + #undef _l #undef _h }