gpuwebtest

command
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2026 License: BSD-3-Clause Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command gpuwebtest is the program of the browser tests of the WebGPU renderer (step 21.5, SPEC §9.5, §17). The query parameter "mode" says what it does, and it posts what it saw to the test server as a result of kind "gpuweb":

  • parity: draws every proof scene with the explicit renderer over WebGPU, reads the frame back (a read that finishes in a later task) and compares it with the software renderer's, in the same program; the snapshot (soft) is compared too, and the browser's validation errors are collected
  • unavailable: makes WebGPU fail in each of the ways it can (no navigator.gpu, no adapter, no device, a rejected shader, no answer in time) and asks for swapchains that cannot be made, and reports the tags and routes
  • loss: destroys the GPUDevice under a running renderer, twice, and reports what the renderer did: the first loss is recovered on a device that was asked for without waiting, the second within ten seconds ends the frame with GPUDeviceLost
  • choose: runs a small Material app through the engine and reports the kind of context its canvas ended up with and what RunApp returned (the query parameter "poison" hides navigator.gpu, and "poisongl" makes getContext("webgl2") answer null)

It only does something on the web; elsewhere it says so and exits. It is built by the tests with the web build tool (webtool.Build), not run by hand.

Flutter: no counterpart

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL