teoxoy
e05706bc48
[wgsl] remove fallthrough statement
...
also add support for default to be used with other case selectors
2022-12-09 10:21:58 -08:00
teoxoy
91ee407c87
[hlsl-out] fix fallthrough in switch statements
2022-05-30 13:11:56 -07:00
Igor Shaposhnik
fbb77aa0dc
[wgsl-in] Update entry point stage attributes
2022-04-15 18:02:48 +01:00
Igor Shaposhnik
c356b93962
[wgsl-in] Optional parentheses for if and switch
2022-02-15 09:57:07 -05:00
Dzmitry Malyshau
4bd1efc34d
wgsl: declare attribtues with @
2022-01-20 19:44:05 -05:00
Boris-Chengbiao Zhou
1dcde48d09
[valid] Check that switches have a default case ( #1529 )
...
From the WGSL spec: "Each switch statement must have exactly one default clause."
2021-11-15 00:07:55 +00:00
João Capucho
d5fc05e8a4
Allow unsigned integers in switch
2021-09-21 17:16:51 -04:00
Hans Christian Schmitz
8417f849b1
Fix GLSL output for non-fallthrough switch cases ( #1310 )
...
* Fix GLSL output for non-fallthrough switch cases
Partially reverts 02c74b5002
and
fixes #1309 .
* Fix indentation of control-flow WGSL code
* Clean up glsl-out switch case fallthrough handling
Only insert a break if needed
and if a case is fallthrough, insert a comment indicating this.
2021-08-31 17:48:28 -04:00
Jim Blandy
cb0ad2504c
[spv-out] Handle break and continue in switch statements.
...
Fixes #1030 .
Fixes #1017 .
2021-08-27 16:39:59 -07:00
Igor Shaposhnik
464788dc8d
[hlsl-out] Implement switch statement ( #1265 )
...
* [hlsl-out] Implement switch statement
* [hlsl-out] Implement switch statement
* Add switch tests to control-flow snapshot
2021-08-22 22:30:22 -04:00
Dzmitry Malyshau
09032695b0
Barrier follow-up fixes
2021-05-06 14:48:55 -04:00
Dzmitry Malyshau
9fe75ed7f1
Barriers
2021-05-04 22:16:24 -04:00