You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[naga wgsl-in] Handle automatic type conversions for switch selector and case expressions
This allows abstract-typed expressions to be used for some or all of
the switch selector and case selectors. If these are all not
convertible to the same concrete scalar integer type we return an
error. If all the selector expressions are abstract then they are
concretized to i32.
The note previously provided by the relevant error message, suggesting
adding or removing the `u` suffix from case values, has been
removed. While useful for simple literal values, it was comically
incorrect for more complex case expressions. The error message should
still be useful enough to allow the user to easily identify the
problem.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -195,6 +195,7 @@ By @brodycj in [#6924](https://github.com/gfx-rs/wgpu/pull/6924).
195
195
-Forward '--keep-coordinate-space' flag to GLSL backend in naga-cli.By@cloone8 in [#7206](https://github.com/gfx-rs/wgpu/pull/7206).
196
196
-Allow template lists to have a trailing comma.By@KentSlaneyin [#7142](https://github.com/gfx-rs/wgpu/pull/7142).
197
197
-AllowWGSLconst declarations to have abstract types.By@jamienicol in [#7055](https://github.com/gfx-rs/wgpu/pull/7055).
198
+
-Allowabstract types to be used forWGSL switch statement selector and case selector expressions.By@jamienicol in [#7250](https://github.com/gfx-rs/wgpu/pull/7250).
0 commit comments