commit | a20c7400e2a91a93dcbc9565261294624c1b3a9c | [log] [tgz] |
---|---|---|
author | John Stiles <johnstiles@google.com> | Fri Mar 17 14:11:36 2023 -0400 |
committer | SkCQ <skcq-be@skia-corp.google.com.iam.gserviceaccount.com> | Fri Mar 17 20:24:14 2023 +0000 |
tree | 9fa42d02f3c0d2c3a70f0ee4b4690ec5d52ac662 | |
parent | 1f5294f9d1540aeaf2d8937d4ea2839c923c6c4b [diff] |
Implement faceforward intrinsic in RP codegen. This implementation uses bitwise logic to toggle the sign bit of N based on the result of dot(I, NRef). Change-Id: I1e788435d5943ea6e01a04da89289ee3a3f1fa74 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/658076 Reviewed-by: Brian Osman <brianosman@google.com> Auto-Submit: John Stiles <johnstiles@google.com> Commit-Queue: John Stiles <johnstiles@google.com>