skia2/tests/sksl/intrinsics/FaceForward.sksl
John Stiles ad0571f54a Add support for scalar faceforward intrinsic in Metal.
Change-Id: I8eae896f5a859b59a1ba0b29dc95d5aa070c12ae
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/343102
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2020-12-11 15:29:50 +00:00

7 lines
135 B
Plaintext

in half a, b, c;
in half4 d, e, f;
void main() {
sk_FragColor.x = faceforward(a, b, c);
sk_FragColor = faceforward(d, e, f);
}