wgsl: Add support for increment/decrement statements

Implemented in both the reader and writer with E2E tests. Other
backends will ICE for now.

Bug: tint:1488
Change-Id: Ied2afa55a338347f427dee98a4076643ac432d9c
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/86003
Reviewed-by: Ben Clayton <bclayton@google.com>
This commit is contained in:
James Price
2022-04-07 13:42:45 +00:00
parent 2f9e31cefb
commit b02fe31e46
117 changed files with 1579 additions and 34 deletions

View File

@@ -0,0 +1,6 @@
@group(0) @binding(0) var<storage, read_write> i : u32;
fn main() {
for (i++; i < 10u;) {
}
}