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>
16 lines
744 B
Plaintext
16 lines
744 B
Plaintext
uniform half4 testInputs;
|
|
uniform half4 colorGreen, colorRed, colorWhite;
|
|
|
|
half4 main() {
|
|
half4 vector2 = 2 * colorWhite;
|
|
half4 expected = half4(0.75, 0, 0.75, 0.25);
|
|
return (mod(testInputs.x, 2) == expected.x &&
|
|
mod(testInputs.xy, 2) == expected.xy &&
|
|
mod(testInputs.xyz, 2) == expected.xyz &&
|
|
mod(testInputs.xyzw, 2) == expected.xyzw &&
|
|
mod(testInputs.x, vector2.x) == expected.x &&
|
|
mod(testInputs.xy, vector2.xy) == expected.xy &&
|
|
mod(testInputs.xyz, vector2.xyz) == expected.xyz &&
|
|
mod(testInputs.xyzw, vector2.xyzw) == expected.xyzw) ? colorGreen : colorRed;
|
|
}
|