GpuInfo
pub struct GpuInfo
What the SDK found to run the GPU pipeline on.
GpuInfo — fields
compiled_with_gpu: bool
Whether this build has GPU support in it at all. false makes
every other field moot.
available: bool
Whether a usable adapter was found. A software-only adapter
counts as unusable and says so in
GpuInfo::unavailable_reason: running the pipeline on a
rasteriser is slower than the CPU path it exists to replace.
is_software: bool
Whether the adapter is a software rasteriser.
vendor_id: u32
PCI vendor id, or 0.
device_id: u32
PCI device id, or 0.
api: String
"D3D12", "Vulkan", … Empty when unavailable.
adapter: String
The adapter's name. Empty when unavailable.
vendor: String
The vendor's name, derived from GpuInfo::vendor_id. Empty
for an id the SDK has no name for, and empty when unavailable.
Not the driver: this field once carried what wgpu reports as its "vendor", which is the driver string, and on D3D12 that was a version number.
unavailable_reason: String
Why there is no GPU, when there is not. Empty while
GpuInfo::available.
Read this rather than inferring. "No adapter at all", "a software-only adapter" and "a device that could not be created" are three different machines to fix.
driver_name: String
The driver's own name where it reports one; empty otherwise: D3D12 reports a version and no name.
driver_version: String
The driver's version where it reports one, free-form, e.g.
"32.0.16.1692".