mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
* fix(glsl-out,hlsl-out,msl-out): parenthesize unary negations a la `wgsl` everywhere Unify parenthesization of unary negations across all backends with what the `wgsl` backend does, which is `<op>(<expr>)`. This avoids ambiguity with output languages for which `--` is a different operation; in this case, we've been accidentally emitting prefix decrements. * build: update `rspirv` 0.11 -> 0.12 (FIXME: use upstream release) * test: add `operators::negation_avoids_prefix_decrement` test Co-authored-by: Dzmitry Malyshau <kvark@fastmail.com>