Files
wgpu/cts_runner
Andy LeisersonandJim Blandy c4365b9818 fix(naga): Improve validation of non-constructible types (#8873)
* fix(naga): Improve validation of non-constructible types

Fixes #4720
Fixes the test cases in #7393, but not the issue itself

* Zero-constructing texture_2d is no longer caught by front end.

* Define `TypeInner::is_constructible`; use it in `front::wgsl`.

Add a new method `TypeInner::is_constructible`, that determines
whether WGSL considers a type [constructible]. Use this to generate
errors in the WGSL front end. Assert in validation that it matches the
judgment of `Validator::validate_type`.

[constructible]: https://gpuweb.github.io/gpuweb/wgsl/#constructible-types

---------

Co-authored-by: Jim Blandy <jimb@red-bean.com>
2026-02-18 11:08:53 -08:00
..

cts_runner

This crate contains infrastructure for running the WebGPU conformance tests on Deno's wgpu-based implementation of WebGPU.

Instructions for running the tests via the CTS xtask are in docs/testing.md. The file revision.txt specifies the version of the CTS that will be used by default.

cts_runner is somewhat misnamed at this point, in that it is useful for things other than just running the CTS:

  • The tests directory contains a few directed tests for Deno's bindings to wgpu.
  • Standalone JavaScript snippets that use WebGPU can be run with a command like: cargo run -p cts_runner -- test.js.