Skip to content

Commit 013058f

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

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
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) {

vulkaninfo/vulkaninfo.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ USAGE:
5656
vulkaninfo -j | -j=<gpu-number> | --json | --json=<gpu-number>
5757
vulkaninfo --text
5858
vulkaninfo --html
59+
vulkaninfo --show-all
5960
vulkaninfo --show-formats
60-
vulkaninfo --show-tool-props
6161
6262
OPTIONS:
6363
[-h, --help] Print this help.
@@ -79,9 +79,18 @@ OPTIONS:
7979
specifying the gpu-number associated with the gpu of
8080
interest. This number can be determined by running
8181
vulkaninfo without any options specified.
82-
[--show-tool-props] Show the active VkPhysicalDeviceToolPropertiesEXT that vulkaninfo finds.
82+
[--show-all] Show everything (includes all the below options)
8383
[--show-formats] Display the format properties of each physical device.
8484
Note: This only affects text output.
85+
[--show-tool-props] Show the active VkPhysicalDeviceToolPropertiesEXT that vulkaninfo finds.
86+
[--show-promoted-structs]
87+
Include structs promoted to core in pNext Chains.
88+
[--show-video-props]
89+
Display the video profile info, video capabilities and
90+
video format properties of each video profile supported
91+
by each physical device.
92+
Note: This only affects text output which by default
93+
only contains the list of supported video profile names.
8594
```
8695

8796
### Windows

0 commit comments

Comments
 (0)