f06aeedcf1
These are fully supported by ES2 and will be covered by dm tests. Change-Id: Iebf4effe8ab928662b55c0bb5b09e8b2a61487ca Reviewed-on: https://skia-review.googlesource.com/c/skia/+/362460 Commit-Queue: John Stiles <johnstiles@google.com> Commit-Queue: Ethan Nicholas <ethannicholas@google.com> Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
11 lines
375 B
Plaintext
11 lines
375 B
Plaintext
uniform half4 testInputs;
|
|
uniform half4 colorGreen, colorRed;
|
|
|
|
half4 main() {
|
|
half4 expected = half4(0.75, 0, 0.75, 0.25);
|
|
return (fract(testInputs.x) == expected.x &&
|
|
fract(testInputs.xy) == expected.xy &&
|
|
fract(testInputs.xyz) == expected.xyz &&
|
|
fract(testInputs.xyzw) == expected.xyzw) ? colorGreen : colorRed;
|
|
}
|