wgsl: make if/switch parentheses optional

Fixed: tint:1424
Change-Id: Id135c74fbbba941cce7fb96970d3c23417bc14ec
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/84340
Kokoro: Kokoro <noreply+kokoro@google.com>
Auto-Submit: James Price <jrprice@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
This commit is contained in:
James Price
2022-03-23 09:11:03 +00:00
committed by Tint LUCI CQ
parent e07c40af14
commit d9d08aecf4
5 changed files with 76 additions and 36 deletions

View File

@@ -2,6 +2,10 @@
## Changes for M102
### New Features
* Parentheses are no longer required around expressions for if and switch statements [tint:1424](crbug.com/tint/1424)
### Breaking changes
* The `@block` attribute has been removed. [tint:1324](crbug.com/tint/1324)