From 9318331b32868024809174f9e417b2f96a4ea639 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 8 Feb 2022 11:26:17 +0100 Subject: [PATCH] vk-info: display features only if --features is set. Otherwise the output is way too big by default. --- src/Magnum/Vk/vk-info.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Magnum/Vk/vk-info.cpp b/src/Magnum/Vk/vk-info.cpp index 66532c8eb..22d8ddf50 100644 --- a/src/Magnum/Vk/vk-info.cpp +++ b/src/Magnum/Vk/vk-info.cpp @@ -60,7 +60,7 @@ See @ref building, @ref cmake and the @ref Vk namespace for more information. @code{.sh} magnum-vk-info [--magnum-...] [-h|--help] [--extension-strings] - [--all-extensions] + [--all-extensions] [--features] @endcode Arguments: @@ -68,6 +68,7 @@ Arguments: - `-h`, `--help` --- display this help message and exit - `--extension-strings` --- list all extension strings provided by the driver - `--all-extensions` --- display extensions also for fully supported versions +- `--features` -- display also features supported by the device - `--magnum-...` --- engine-specific options (see @ref Vk-Instance-command-line for details) @@ -135,6 +136,7 @@ int main(int argc, char** argv) { Utility::Arguments args; args.addBooleanOption("extension-strings").setHelp("extension-strings", "list all extension strings provided by the driver") .addBooleanOption("all-extensions").setHelp("all-extensions", "display extensions also for fully supported versions") + .addBooleanOption("features").setHelp("features", "display also features supported by the device") .addSkippedPrefix("magnum", "engine-specific options") .setGlobalHelp("Displays information about Magnum engine and Vulkan capabilities.") .parse(argc, argv); @@ -432,8 +434,8 @@ int main(int argc, char** argv) { /* If we wanted only extension strings, exit now */ if(args.isSet("extension-strings")) return 0; - Debug{} << "Feature support:"; - { + if(args.isSet("features")) { + Debug{} << "Feature support:"; #ifndef DOXYGEN_GENERATING_OUTPUT /* It gets really confused */ const Vk::DeviceFeatures features = device.features(); #define _c(value, field) \