Open kvark opened 3 years ago
Sascha Willems Vulkan examples have useful (and easier to integrate) shaders test set. It should help to test spv-in
and all naga backends. I don't think we should store any kind of snapshots in the naga repository with an external test set. Just be sure that the naga frontend and backend can handle them.
Dota2 shader set was added in 47ada8182b83d43f47435df76d68f7dd278ab57a
David's sample set - https://github.com/dneto0/spirv-samples
David's sample set - https://github.com/dneto0/spirv-samples
@kvark Since we already have 2 external datasets, adding one more seems pretty straightforward task. We should just parse this external data set or produce valid wgsl
code from it? Fail CI if something goes wrong or not?
@Gordon-F I thought we just want to parse them into IR and validate. But generating WGSL is in line with our testing strategy, so it's also good.
Tint
has a lot of tests - https://dawn.googlesource.com/tint/+/refs/heads/main/test/
We can run them as a lazy task or copy them to the naga repository (tint under Apache 2.0 license).
It would be useful to have some place where we can store the bigger sets of shaders (SPIR-V, WGSL, GLSL, whatever). We'd then have a Github Action to fetch them and parse/validate. Since this would be a heavy action, we'd run it either manually, or on tag creation (seems most practical).
Here some info about SPIR-V corpus: