Skip to content

Commit 3f05dc2

Browse files
committed
Remove outdated docs
1 parent 4408a6e commit 3f05dc2

File tree

1 file changed

+0
-52
lines changed

1 file changed

+0
-52
lines changed

docs/src/testing.md

-52
Original file line numberDiff line numberDiff line change
@@ -54,57 +54,5 @@ cargo compiletest --target-env=vulkan1.1
5454
cargo compiletest --target-env=vulkan1.1,spv.1.3
5555
```
5656

57-
## Diff Tests
58-
59-
### Adding Tests
60-
61-
To add a test, you need to write your GPU code twice--once in Rust, and once in WGSL.
62-
Together these two shaders/kernels form a logical test. The testing harness will run
63-
both programs, compare their output, and fail the test if they don't match. The location
64-
of the test in the "pipelines/" directory determines the output type.
65-
66-
Tests can control the behavior of the test harness via comment directives in the
67-
corresponding Rust code. Comment directives are not supported in WGSL.
68-
69-
### Fragment and Vertex Shaders
70-
71-
Tests in "pipelines/graphics/" are used for vertex and fragment shaders. The test
72-
harness will save the resulting display buffers to images and compare them, failing if
73-
they do not match. If they do not match, their paths will be output so that you can
74-
determine what is different.
75-
76-
You must currently name your fragment entrypoint `main_fs` and your vertex entry point
77-
`main_vs`.
78-
79-
### Compute Kernels / Shaders
80-
81-
Tests in "pipelines/compute/" are used for compute shaders. The test harness will
82-
compare the two binary outputs and fail the test if they don't match.
83-
84-
The output type is specified by a comment directive:
85-
86-
```
87-
// output: [u8]
88-
```
89-
90-
Valid values are `[u8]`, `f32`, and `u32`.
91-
92-
You must currently name your compute entrypoint `main_cs`.
93-
94-
### Fragment and Vertex with Compute Shaders
95-
96-
Tests in "pipelines/mixed/" are used for running vertex, fragment, and compute shaders
97-
at the same time. As with vertex and fragment shaders, test harness will save the
98-
resulting display buffers to images and compare them.
99-
100-
### Filtering Tests
101-
102-
Similar to compiletests, `cargo difftest` supports running specific tests by passing
103-
substrings of their paths:
104-
105-
```bash
106-
cargo difftest compute simple
107-
```
108-
10957
[`compiletest`]: https://github.com/laumann/compiletest-rs
11058
[rustc-dev-guide]: https://rustc-dev-guide.rust-lang.org/tests/intro.html

0 commit comments

Comments
 (0)