commit | 6ae21ac1ba8b1aa60a2cfdc6f72f302a6396d26a | [log] [tgz] |
---|---|---|
author | John Stiles <johnstiles@google.com> | Fri May 19 14:27:26 2023 -0400 |
committer | SkCQ <skcq-be@skia-corp.google.com.iam.gserviceaccount.com> | Fri May 19 19:07:21 2023 +0000 |
tree | 156fa2df6504b54719ca3c10da0349dfe5cedbf6 | |
parent | a0b37785081b445479f342c355517aa90e298366 [diff] |
Implement non-trivial ternary expressions in WGSL. Non-trivial ternary expressions now expand to an if-else statement and that writes into a temporary variable. Bug: skia:14082 Change-Id: Id2100a0097999979939a97fca3e12439f3adfc8d Reviewed-on: https://skia-review.googlesource.com/c/skia/+/700229 Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Arman Uguray <armansito@google.com> Commit-Queue: John Stiles <johnstiles@google.com>