Skip to content

Commit d4e92b2

Browse files
vulkaninfo: Add a show-all option
1 parent 0a1fb7e commit d4e92b2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

vulkaninfo/vulkaninfo.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,6 +1059,7 @@ const char *help_message_body =
10591059
" interest. This number can be determined by running\n"
10601060
" " APP_SHORT_NAME
10611061
" without any options specified.\n"
1062+
"[--show-all] Show everything (includes all the below options)\n"
10621063
"[--show-tool-props] Show the active VkPhysicalDeviceToolPropertiesEXT that " APP_SHORT_NAME
10631064
" finds.\n"
10641065
"[--show-formats] Display the format properties of each physical device.\n"
@@ -1079,9 +1080,11 @@ void print_usage(const std::string &executable_name) {
10791080
std::cout << " " << executable_name << " -j | -j=<gpu-number> | --json | --json=<gpu-number>\n";
10801081
std::cout << " " << executable_name << " --text\n";
10811082
std::cout << " " << executable_name << " --html\n";
1083+
std::cout << " " << executable_name << " --show-all\n";
10821084
std::cout << " " << executable_name << " --show-formats\n";
10831085
std::cout << " " << executable_name << " --show-tool-props\n";
10841086
std::cout << " " << executable_name << " --show-promoted-structs\n";
1087+
std::cout << " " << executable_name << " --show-video-props\n";
10851088
std::cout << "\n" << help_message_body << std::endl;
10861089
}
10871090

@@ -1138,6 +1141,11 @@ util::vulkaninfo_optional<ParsedResults> parse_arguments(int argc, char **argv,
11381141
results.output_category = OutputCategory::html;
11391142
results.print_to_file = true;
11401143
results.default_filename = APP_SHORT_NAME ".html";
1144+
} else if (strcmp(argv[i], "--show-all") == 0) {
1145+
results.show_tool_props = true;
1146+
results.show_formats = true;
1147+
results.show_promoted_structs = true;
1148+
results.show_video_props = true;
11411149
} else if (strcmp(argv[i], "--show-tool-props") == 0) {
11421150
results.show_tool_props = true;
11431151
} else if (strcmp(argv[i], "--show-formats") == 0) {

0 commit comments

Comments
 (0)