dawn-cmake/test/bug/tint/1064.wgsl.expected.wgsl
Ben Clayton ed60a9905c transform: LoopToForLoop - fix bad emission
For loops only support assignments or function calls for the continuing statement.

Fixed: tint:1064
Change-Id: I07065b2119e7b9f97ca7e46b1464fd72333ca429
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/60212
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: David Neto <dneto@google.com>
2021-07-29 18:05:19 +00:00

17 lines
176 B
WebGPU Shading Language

[[stage(fragment)]]
fn main() {
loop {
if (false) {
} else {
break;
}
continuing {
if (true) {
} else {
break;
}
}
}
}