Skip to content

Commit

Permalink
Add differential testing harness
Browse files Browse the repository at this point in the history
This runs wgsl shaders and rust shaders and compares the output.
If the output differs, the test fails. Differential testing is better
than snapshot testing or golden file testing as there are no reference
files to get outdated.

Note that we are only using wgpu for now, but I want to also vary
the host-side crate / use `ash`. At least we are using `wgpu`'s vulkan
support on linux, so we are not just testing naga's translation.
  • Loading branch information
LegNeato committed Feb 4, 2025
1 parent 6e2c84d commit 9018b39
Show file tree
Hide file tree
Showing 316 changed files with 3,252 additions and 221 deletions.
1 change: 1 addition & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[alias]
compiletest = "run --release -p compiletests --"
difftest = "run --release -p difftests --"

[target.'cfg(all())']
rustflags = [
Expand Down
Loading

0 comments on commit 9018b39

Please sign in to comment.