#graphics #adapter #wgpu #web-gpu #information #command-line

app wgpu-info

A tool to print and process information about available wgpu adapters

6 releases (1 stable)

new 22.0.0 Jul 18, 2024
0.20.1 Jun 13, 2024
0.20.0 Apr 29, 2024
0.19.0 Jan 17, 2024
0.17.0 Jul 21, 2023

#654 in Graphics APIs

Download history 43/week @ 2024-04-01 4/week @ 2024-04-22 170/week @ 2024-04-29 182/week @ 2024-06-10 9/week @ 2024-06-17 116/week @ 2024-07-15

116 downloads per month

MIT/Apache

1.5MB
26K SLoC

wgpu-info

This is a command line utility that does two different functions.

Listing Adapters

When called with no arguments, wgpu-info will list all adapters visible to wgpu and all the information about them we have.

For OpenGL on platforms other than Linux add the angle feature, for Vulkan on macOS add the vulkan-portability feature.

cargo run --bin wgpu-info

Running Test on many Adapters

When called with any amount of arguments, it will interpret all of the arguments as a command to run. It will run this command N different times, one for every combination of adapter and backend on the system.

For every command invocation, it will set WGPU_ADAPTER_NAME to the name of the adapter name and WGPU_BACKEND to the name of the backend. This is used as the primary means of testing across many adapters.

Dependencies

~9–40MB
~634K SLoC