Commit 9018b39
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- .cargo
- tests
- compiletests
- deps-helper
- src
- src
- ui
- arch
- subgroup
- byte_addressable_buffer
- dis
- glam
- image
- query
- sample_depth_reference_with_project_coordinate
- sample_depth_reference
- sample_with_project_coordinate
- lang
- asm
- consts
- control_flow
- core
- intrinsics
- mem
- ops
- ptr
- ref
- f32
- panic
- spirv-attr
- storage_class
- difftests
- pipelines
- computex/hardcoded
- src
- compute/hardcoded
- src
- graphics/simple
- src
- src
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| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
0 commit comments