Browse Source

vk-info: display features only if --features is set.

Otherwise the output is way too big by default.
pull/539/head
Vladimír Vondruš 4 years ago
parent
commit
9318331b32
  1. 8
      src/Magnum/Vk/vk-info.cpp

8
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} @code{.sh}
magnum-vk-info [--magnum-...] [-h|--help] [--extension-strings] magnum-vk-info [--magnum-...] [-h|--help] [--extension-strings]
[--all-extensions] [--all-extensions] [--features]
@endcode @endcode
Arguments: Arguments:
@ -68,6 +68,7 @@ Arguments:
- `-h`, `--help` --- display this help message and exit - `-h`, `--help` --- display this help message and exit
- `--extension-strings` --- list all extension strings provided by the driver - `--extension-strings` --- list all extension strings provided by the driver
- `--all-extensions` --- display extensions also for fully supported versions - `--all-extensions` --- display extensions also for fully supported versions
- `--features` -- display also features supported by the device
- `--magnum-...` --- engine-specific options (see - `--magnum-...` --- engine-specific options (see
@ref Vk-Instance-command-line for details) @ref Vk-Instance-command-line for details)
@ -135,6 +136,7 @@ int main(int argc, char** argv) {
Utility::Arguments args; Utility::Arguments args;
args.addBooleanOption("extension-strings").setHelp("extension-strings", "list all extension strings provided by the driver") 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("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") .addSkippedPrefix("magnum", "engine-specific options")
.setGlobalHelp("Displays information about Magnum engine and Vulkan capabilities.") .setGlobalHelp("Displays information about Magnum engine and Vulkan capabilities.")
.parse(argc, argv); .parse(argc, argv);
@ -432,8 +434,8 @@ int main(int argc, char** argv) {
/* If we wanted only extension strings, exit now */ /* If we wanted only extension strings, exit now */
if(args.isSet("extension-strings")) return 0; 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 */ #ifndef DOXYGEN_GENERATING_OUTPUT /* It gets really confused */
const Vk::DeviceFeatures features = device.features(); const Vk::DeviceFeatures features = device.features();
#define _c(value, field) \ #define _c(value, field) \

Loading…
Cancel
Save