Skip to main content

Module gpu_info

Module gpu_info 

Source
Expand description

The device a test run got, described in wgpu’s own terms.

A snapshot mismatch is usually a difference between one driver and another, so the first thing to establish about a failing run is which driver it ran on: the backend, the adapter, the features and the limits, all of which change what a frame records. The same description is what a passing run leaves behind, because a comparison against a stored frame is only meaningful against the device the stored frame came from.

The types are wgpu’s and its serde feature describes them, so nothing here formats a value by hand: the description is the adapter, features and limits serialized as wgpu already spells them, which is what keeps a printed run and a wgpu-info reading comparable.

Re-exports§

use serde::Serialize; 🔒
use serde::Serialize; 🔒

Structs§

GpuInfo
The device a test run draws with, as a serializable record.