← 返回命令列表

Linux command

vulkaninfo 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Show Vulkan information summary

vulkaninfo --summary

Display full Vulkan information

vulkaninfo

Output to a file

vulkaninfo -o [vulkan_info.txt]

Generate JSON output

vulkaninfo --json

Generate HTML report

vulkaninfo --html

Show all available formats

vulkaninfo --show-formats

Target specific GPU

vulkaninfo --json=[0]

说明

vulkaninfo displays detailed information about Vulkan API support on the system, including physical devices (GPUs), available extensions, layers, memory types, queue families, and supported formats. The tool queries the Vulkan runtime to enumerate all Vulkan-capable devices and their capabilities. This includes device properties (name, type, driver version, API version), limits, supported features, memory heaps, and queue family properties. Output can be extremely verbose on systems with multiple GPUs or extensive driver features. Use --summary for a quick overview or redirect output to a file for detailed analysis. The tool is essential for verifying Vulkan installation, debugging driver issues, and determining hardware capabilities for application development. vulkaninfo is part of the vulkan-tools package on most Linux distributions.

参数

--summary
Display a brief summary of Vulkan information for all GPUs.
--text
Produce text output to stdout. This is the default format.
--html
Generate HTML report saved as vulkaninfo.html.
-j, --json=_gpu_
Produce JSON output conforming to Vulkan Profiles schema. Optional GPU number targets specific device.
-o _file_, --output _file_
Save output to the specified file.
--show-formats
Display detailed information about supported image formats.
--show-all
Display all available information.
-h, --help
Display help message.

FAQ

What is the vulkaninfo command used for?

vulkaninfo displays detailed information about Vulkan API support on the system, including physical devices (GPUs), available extensions, layers, memory types, queue families, and supported formats. The tool queries the Vulkan runtime to enumerate all Vulkan-capable devices and their capabilities. This includes device properties (name, type, driver version, API version), limits, supported features, memory heaps, and queue family properties. Output can be extremely verbose on systems with multiple GPUs or extensive driver features. Use --summary for a quick overview or redirect output to a file for detailed analysis. The tool is essential for verifying Vulkan installation, debugging driver issues, and determining hardware capabilities for application development. vulkaninfo is part of the vulkan-tools package on most Linux distributions.

How do I run a basic vulkaninfo example?

Run `vulkaninfo --summary` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --summary do in vulkaninfo?

Display a brief summary of Vulkan information for all GPUs.