commit | 2f2e4a228723392f2b5fadb23b2fa06b5436e014 | [log] [tgz] |
---|---|---|
author | John Stiles <johnstiles@google.com> | Tue Jun 06 16:08:03 2023 -0400 |
committer | SkCQ <skcq-be@skia-corp.google.com.iam.gserviceaccount.com> | Tue Jun 06 22:34:04 2023 +0000 |
tree | 90e79ea3df17a66f62fb16cad67753b96be5d6cf | |
parent | 521b8c4bb011f9847b20ed2d7e17e4c288b996f9 [diff] |
Add WGSL support for do-while loops. These can be implemented pretty naturally as a WGSL loop {} construct. Most do-while tests now pass, but a few do not, because WGSL is unable to detect unconditional returns within a loop body. This causes some valid SkSL tests to fail in WGSL with a "missing return at end of function" error. This will be fixed in a followup. Example test breakages: https://paste.googleplex.com/5519253959606272 https://paste.googleplex.com/6640317599055872 Bug: skia:13092 Change-Id: I72eec654e9a03e506dce1b4419590bba2290e4bc Reviewed-on: https://skia-review.googlesource.com/c/skia/+/708376 Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Arman Uguray <armansito@google.com> Commit-Queue: Arman Uguray <armansito@google.com>