Expand description
The catalog that lets one test body run under libtest-mimic natively and
in a browser through wasm.
gpu_tests! collects a file’s tests into the catalog
the harness runs, and gpu_test_main! supplies the
main that drives it. One source file serves both runners, because a body
is an ordinary async fn and both runners reach it through the same
all_tests().
A body is async even when it awaits nothing in particular: the device it
asks Ctx::headless for comes from wgpu’s
asynchronous adapter and device requests, which a browser cannot satisfy
without yielding.
Re-exports§
Structs§
- Test
Entry - One test the harness knows how to run.