ab4ab20fcf
These tests will also be used for Metal and SPIR-V testing. A small handful of GLSL-specific stragglers (#version-specific or type-precision related) will remain in /glsl/. Change-Id: I7f2b2bd92825c327922c8ce74e438d2daa440dff Bug: skia:10649 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/319408 Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
52 lines
2.4 KiB
Plaintext
52 lines
2.4 KiB
Plaintext
void main() {
|
|
sk_FragColor.r = half4(0.5, 1, 1, 1).x;
|
|
sk_FragColor = half4(half2(1), half2(2, 3)) + half4(5, 6, 7, 8);
|
|
sk_FragColor = half4(8, half3(10)) - half4(1);
|
|
sk_FragColor = half4(2) * half4(1, 2, 3, 4);
|
|
sk_FragColor = half4(12) / half4(1, 2, 3, 4);
|
|
sk_FragColor.r = (half4(12) / half4(1, 2, 3, 4)).y;
|
|
sk_FragColor.x = half4(1) == half4(1) ? 1.0 : -1.0;
|
|
sk_FragColor.x = half4(1) == half4(2) ? 2.0 : -2.0;
|
|
sk_FragColor.x = half2(1) == half2(1, 1) ? 3.0 : -3.0;
|
|
sk_FragColor.x = half2(1, 1) == half2(1, 1) ? 4.0 : -4.0;
|
|
sk_FragColor.x = half2(1) == half2(1, 0) ? 5.0 : -5.0;
|
|
sk_FragColor.x = half4(1) == half4(half2(1), half2(1)) ? 6.0 : -6.0;
|
|
sk_FragColor.x = half4(half3(1), 1) == half4(half2(1), half2(1)) ? 7.0 : -7.0;
|
|
sk_FragColor.x = half4(half3(1), 1) == half4(half2(1), 1, 0) ? 8.0 : -8.0;
|
|
sk_FragColor.x = half2(1) != half2(1, 0) ? 9.0 : -9.0;
|
|
sk_FragColor.x = half4(1) != half4(half2(1), half2(1)) ? 10.0 : -10.0;
|
|
sk_FragColor = half4(half(sqrt(1))) * half4(1);
|
|
sk_FragColor = half4(1) * half4(half(sqrt(2)));
|
|
sk_FragColor = half4(0) * half4(half(sqrt(3)));
|
|
sk_FragColor = half4(half(sqrt(4))) * half4(0);
|
|
sk_FragColor = half4(0) / half4(half(sqrt(5)));
|
|
sk_FragColor = half4(0) + half4(half(sqrt(6)));
|
|
sk_FragColor = half4(half(sqrt(7))) + half4(0);
|
|
sk_FragColor = half4(half(sqrt(8))) - half4(0);
|
|
sk_FragColor = half4(0) + half(half(sqrt(9)));
|
|
sk_FragColor = half4(0) * half(sqrt(10));
|
|
sk_FragColor = half4(0) / half(sqrt(11));
|
|
sk_FragColor = half4(1) * half(sqrt(12));
|
|
sk_FragColor = 0 + half4(half(sqrt(13)));
|
|
sk_FragColor = 0 * half4(half(sqrt(14)));
|
|
sk_FragColor = 0 / half4(half(sqrt(15)));
|
|
sk_FragColor = 1 * half4(half(sqrt(16)));
|
|
sk_FragColor = half4(half(sqrt(17))) + 0;
|
|
sk_FragColor = half4(half(sqrt(18))) * 0;
|
|
sk_FragColor = half4(half(sqrt(19))) * 1;
|
|
sk_FragColor = half4(half(sqrt(19.5))) - 0;
|
|
sk_FragColor = half(half(sqrt(20))) * half4(1);
|
|
sk_FragColor = half(half(sqrt(21))) + half4(0);
|
|
sk_FragColor = half(half(sqrt(22))) - half4(0);
|
|
sk_FragColor = half(half(sqrt(23))) / half4(1);
|
|
sk_FragColor = half4(half(sqrt(24))) / 1;
|
|
sk_FragColor += half4(1);
|
|
sk_FragColor += half4(0);
|
|
sk_FragColor -= half4(1);
|
|
sk_FragColor -= half4(0);
|
|
sk_FragColor *= half4(1);
|
|
sk_FragColor *= half4(2);
|
|
sk_FragColor /= half4(1);
|
|
sk_FragColor /= half4(2);
|
|
}
|