Skip to main content

Module print_gpu

Module print_gpu 

Source
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 test runs 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.