skia2/tests/sksl/shared/CrossIntrinsic.sksl
John Stiles 6f3015a562 Reland "Add sk_Caps.builtinDeterminantSupport and use it in cross()."
This is a reland of 6bbf026b54

Original change's description:
> Add sk_Caps.builtinDeterminantSupport and use it in cross().
>
> This CL partially relands http://review.skia.org/321790.
>
> Change-Id: I26a1aefda8a01167783e6e7fa15a51aa35ee5d82
> Bug: skia:10819, skia:10810
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/323784
> Reviewed-by: Chris Dalton <csmartdalton@google.com>
> Commit-Queue: John Stiles <johnstiles@google.com>

Bug: skia:10819
Bug: skia:10810
Change-Id: I7731f93db07bc917707cbbe1daca2e5ce0f763d7
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/324620
Reviewed-by: John Stiles <johnstiles@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
2020-10-09 14:45:23 +00:00

13 lines
294 B
Plaintext

/*#pragma settings Default*/
uniform half2 h2;
uniform float2 f2;
void main() {
sk_FragColor = cross( half2(1, 2), half2(3, 4)).xxxx;
sk_FragColor = half(cross(float2(5, 6), float2(7, 8))).xxxx;
sk_FragColor = cross(h2, h2).xxxx;
sk_FragColor = half(cross(f2, f2)).xxxx;
}