skia2/tests/sksl/shared/golden/NegatedVectorLiteral.glsl
John Stiles cf27b4f744 Improve constant folding for int vectors.
This implements constant folding optimizations on int vectors
(== != + - * /) that were previously only supported on float vectors.

Bug: skia:10908
Change-Id: Ibf61ab43eb7ae2ce8e99cce21cc55777359817e5
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/332424
Commit-Queue: John Stiles <johnstiles@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2020-11-06 17:22:34 +00:00

19 lines
306 B
GLSL

out vec4 sk_FragColor;
void main() {
{
sk_FragColor.x = 1.0;
sk_FragColor.y = 1.0;
sk_FragColor.z = 1.0;
sk_FragColor.w = 1.0;
}
{
sk_FragColor.x = 1.0;
sk_FragColor.y = 1.0;
sk_FragColor.z = 1.0;
sk_FragColor.w = 1.0;
}
}