b0245494c6
The new test files are intended to be identical to the unit tests in every meaningful way. (Comments and formatting are not preserved exactly.) In cases where a unit-test method contained more than one test, multiple test files were created; in these cases, new names were invented to match the apparent intent of each invocation. Followup CLs will continue to migrate additional tests. Change-Id: I785c6761ba7ee2b25b5ddc0108321734be23b77c Bug: skia:10694 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/316678 Commit-Queue: John Stiles <johnstiles@google.com> Reviewed-by: Ethan Nicholas <ethannicholas@google.com> Auto-Submit: John Stiles <johnstiles@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);
|
|
}
|