Browse Source

Platform: show transform feedback-related limits in magnum-info.

pull/77/head
Vladimír Vondruš 12 years ago
parent
commit
50d4bd5c55
  1. 24
      src/Magnum/Platform/magnum-info.cpp

24
src/Magnum/Platform/magnum-info.cpp

@ -50,6 +50,7 @@
#include "Magnum/Texture.h"
#ifndef MAGNUM_TARGET_GLES2
#include "Magnum/TextureArray.h"
#include "Magnum/TransformFeedback.h"
#endif
#ifdef CORRADE_TARGET_NACL
@ -580,6 +581,29 @@ MagnumInfo::MagnumInfo(const Arguments& arguments): Platform::WindowlessApplicat
_l(Sampler::maxMaxAnisotropy())
}
#ifndef MAGNUM_TARGET_GLES2
#ifndef MAGNUM_TARGET_GLES
if(c->isExtensionSupported<Extensions::GL::EXT::transform_feedback>())
#endif
{
#ifndef MAGNUM_TARGET_GLES
_h(EXT::transform_feedback)
#endif
_l(TransformFeedback::maxInterleavedComponents())
_l(TransformFeedback::maxSeparateAttributes())
_l(TransformFeedback::maxSeparateComponents())
}
#endif
#ifndef MAGNUM_TARGET_GLES
if(c->isExtensionSupported<Extensions::GL::ARB::transform_feedback3>()) {
_h(ARB::transform_feedback3)
_l(TransformFeedback::maxBuffers())
}
#endif
if(c->isExtensionSupported<Extensions::GL::KHR::debug>()) {
_h(KHR::debug)

Loading…
Cancel
Save