6f3015a562
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>
35 lines
594 B
GLSL
35 lines
594 B
GLSL
#version 400
|
|
out vec4 sk_FragColor;
|
|
uniform vec2 h2;
|
|
uniform vec2 f2;
|
|
void main() {
|
|
float _0_cross;
|
|
{
|
|
_0_cross = determinant(mat2(vec2(1.0, 2.0), vec2(3.0, 4.0)));
|
|
}
|
|
|
|
sk_FragColor = vec4(_0_cross);
|
|
|
|
float _3_cross;
|
|
{
|
|
_3_cross = determinant(mat2(vec2(5.0, 6.0), vec2(7.0, 8.0)));
|
|
}
|
|
|
|
sk_FragColor = vec4(_3_cross);
|
|
|
|
float _6_cross;
|
|
{
|
|
_6_cross = determinant(mat2(h2, h2));
|
|
}
|
|
|
|
sk_FragColor = vec4(_6_cross);
|
|
|
|
float _7_cross;
|
|
{
|
|
_7_cross = determinant(mat2(f2, f2));
|
|
}
|
|
|
|
sk_FragColor = vec4(_7_cross);
|
|
|
|
}
|