Skip to content

Commit 9018b39

Browse files
committed
Add differential testing harness
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.
1 parent 6e2c84d commit 9018b39

File tree

316 files changed

+3252
-221
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

316 files changed

+3252
-221
lines changed

.cargo/config.toml

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[alias]
22
compiletest = "run --release -p compiletests --"
3+
difftest = "run --release -p difftests --"
34

45
[target.'cfg(all())']
56
rustflags = [

0 commit comments

Comments
 (0)