Description
Detecting support for subgroup ops in naga validators is currently pretty ugly, as it requires creating a validator then calling 2 separate functions on it. I found this really annoying and ugly when I updated naga_oil to naga 0.20.
Add SUBGROUP_VERTEX_STAGE to naga's Capabilities so that naga automatically detects subgroup support when creating a validator.
Testing
I ran the water example and it still worked.
Checklist
[ ] Run cargo fmt.
[ ] Run cargo clippy. If applicable, add:
[ ] --target wasm32-unknown-unknown
[ ] --target wasm32-unknown-emscripten
[ ] Run cargo xtask test to run tests.
[ ] Add change to CHANGELOG.md. See simple instructions inside file.
Description Detecting support for subgroup ops in naga validators is currently pretty ugly, as it requires creating a validator then calling 2 separate functions on it. I found this really annoying and ugly when I updated
naga_oil
to naga 0.20.Add
SUBGROUP_VERTEX_STAGE
to naga'sCapabilities
so that naga automatically detects subgroup support when creating a validator.Testing I ran the water example and it still worked.
Checklist
cargo fmt
.cargo clippy
. If applicable, add:--target wasm32-unknown-unknown
--target wasm32-unknown-emscripten
cargo xtask test
to run tests.CHANGELOG.md
. See simple instructions inside file.