Magnum GL Info
Displays information about Magnum engine OpenGL capabilities.
This utility is built if MAGNUM_WITH_GL_INFO
is enabled when building Magnum. To use this utility with CMake, you need to request the gl-info
component of the Magnum
package and use the Magnum::gl-info
target for example in a custom command:
find_package(Magnum REQUIRED gl-info) add_custom_command(OUTPUT ... COMMAND Magnum::gl-info ...)
See Downloading and building, Usage with CMake and the GL namespace for more information.
Usage
magnum-gl-info [--magnum-...] [-h|--help] [-s|--short] [--extension-strings] [--all-extensions] [--limits]
Arguments:
-h
,--help
— display this help message and exit-s
,--short
— display just essential info and exit--extension-strings
— list all extension strings provided by the driver (implies--short
)--all-extensions
— display extensions also for fully supported versions--limits
— display also limits and implementation-defined values--magnum-...
— engine-specific options (see Command-line options for details)
Usage on Emscripten
When installing Magnum, point the MAGNUM_DEPLOY_PREFIX
CMake variable to your webserver location. The Magnum Info utility is then available in a magnum-info/
subdirectory of given location. You can pass all command-line arguments from above to it via GET parameters. See the relevant section of the Emscripten guide for more information.
Usage on Android
When you have developer-enabled Android device connected or Android emulator running, you can use ADB to upload the built executable to device temp directory and run it on the device:
adb push build-android-arm64/src/Magnum/Platform/magnum-info /data/local/tmp adb shell /data/local/tmp/magnum-info
You can also use adb shell
to log directly into the device shell and continue from there. All command-line arguments are supported.
Example output
+---------------------------------------------------------+ | Information about Magnum engine OpenGL capabilities | +---------------------------------------------------------+ Used application: Platform::WindowlessGlxApplication Compilation flags: CORRADE_BUILD_DEPRECATED CORRADE_BUILD_MULTITHREADED CORRADE_TARGET_UNIX CORRADE_TARGET_X86 CORRADE_TARGET_GCC CORRADE_TARGET_LIBSTDCXX MAGNUM_BUILD_DEPRECATED Compiled CPU features: Sse2|Sse3|Ssse3|Sse41|Sse42 Detected CPU features: Sse2|Sse3|Ssse3|Sse41|Sse42|Avx|Popcnt|AvxF16c Renderer: AMD Radeon R7 M260 Series by ATI Technologies Inc. OpenGL version: 4.5.13399 Compatibility Profile Context 15.201.1151 Using optional features: GL_ARB_ES2_compatibility GL_ARB_direct_state_access GL_ARB_get_texture_sub_image GL_ARB_invalidate_subdata ... Using driver workarounds: no-forward-compatible-core-context no-layout-qualifiers-on-old-glsl Context flags: Supported GLSL versions: 430 core 430 compatibility 420 core ... Vendor extension support: GL_AMD_vertex_shader_layer SUPPORTED GL_AMD_shader_trinary_minmax SUPPORTED GL_ARB_robustness - GL_ARB_robustness_isolation - ...