commit | a927b0e79a1faaab558c193f2080f830bf4f2305 | [log] [tgz] |
---|---|---|
author | John Stiles <johnstiles@google.com> | Wed Jun 28 10:28:14 2023 -0400 |
committer | SkCQ <skcq-be@skia-corp.google.com.iam.gserviceaccount.com> | Wed Jun 28 19:12:27 2023 +0000 |
tree | 8f39e44ab082caa3ce218bfb95bca99934fcf6de | |
parent | 0c63afeaa52bb35c3f3b72c899ad17bf6d0476d0 [diff] |
Add extra parentheses as required by WGSL spec. Context: https://www.w3.org/TR/WGSL/#operator-precedence-associativity This resolves `error: mixing _ and _ requires parentheses` in a few spots. It adds more parens than are strictly necessary, but not so many that the code becomes a mess. Change-Id: I32d8c5a604f5d0cb8db507f67e9c36fdcb49891c Reviewed-on: https://skia-review.googlesource.com/c/skia/+/717337 Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: John Stiles <johnstiles@google.com>