Expand description
cargo xtask print-gpu: describe the device the tests draw with.
A snapshot mismatch is usually a disagreement between drivers, so a CI log
that names the backend, adapter, features and limits is what turns a score
into something a reader can act on. The task runner links no graphics code,
so the description comes from unlit_wgpu_test_utilโs gpu-info binary,
which is built and run here.
A test run draws through two tiers โ the default one, then webgl2 โ so
both are described, each labelled with the tier it belongs to.
Re-exportsยง
use std::process::Command;๐use crate::PrintGpuArgs;๐use crate::step;๐
Constantsยง
- TEST_
TIERS ๐ - The tiers
cargo xtask testruns its passes at, in the order it runs them. - TIER_
ENV ๐ - The environment variable that picks the device tier.
Functionsยง
- print_
tier ๐ - Print the device one tier would draw with.
- run
- Print the device a test run at this tier would draw with.