commit | b02fe31e469d4cc2dcc504cda023c54f23557db1 | [log] [tgz] |
---|---|---|
author | James Price <jrprice@google.com> | Thu Apr 07 13:42:45 2022 +0000 |
committer | James Price <jrprice@google.com> | Thu Apr 07 13:42:45 2022 +0000 |
tree | cae072722e1258aa991de20ead6b3710ea085ec5 | |
parent | 2f9e31cefb5b7b8cdec5dc60a7bed59ac40ee348 [diff] [blame] |
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>
diff --git a/test/tint/statements/increment/for_loop_initializer.wgsl.expected.hlsl b/test/tint/statements/increment/for_loop_initializer.wgsl.expected.hlsl new file mode 100644 index 0000000..1fa9624 --- /dev/null +++ b/test/tint/statements/increment/for_loop_initializer.wgsl.expected.hlsl
@@ -0,0 +1,11 @@ +SKIP: FAILED + + +@group(0) @binding(0) var<storage, read_write> i : u32; + +fn main() { + for(i++; (i < 10u); ) { + } +} + +Failed to generate: error: cannot modify value of type 'u32'