469fb3c619
`input` is a reserved word in GLSL. http://screen/85m4iRwvJRadKbV Change-Id: Iffc0a47d916a2419a27767902c839e09bfa7fe26 Bug: skia:11115 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/454736 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>
24 lines
1.3 KiB
Plaintext
24 lines
1.3 KiB
Plaintext
uniform half4 inputVal, expected;
|
|
uniform half4 colorGreen, colorRed;
|
|
|
|
half4 main(float2 coords) {
|
|
const half4 constVal1 = half4(0);
|
|
const half4 constVal2 = half4(1);
|
|
return (atan(inputVal.x) == expected.x &&
|
|
atan(inputVal.xy) == expected.xy &&
|
|
atan(inputVal.xyz) == expected.xyz &&
|
|
atan(inputVal.xyzw) == expected.xyzw &&
|
|
atan(constVal1.x) == expected.x &&
|
|
atan(constVal1.xy) == expected.xy &&
|
|
atan(constVal1.xyz) == expected.xyz &&
|
|
atan(constVal1.xyzw) == expected.xyzw &&
|
|
atan(inputVal.x, constVal2.x) == expected.x &&
|
|
atan(inputVal.xy, constVal2.xy) == expected.xy &&
|
|
atan(inputVal.xyz, constVal2.xyz) == expected.xyz &&
|
|
atan(inputVal.xyzw, constVal2.xyzw) == expected.xyzw &&
|
|
atan(constVal1.x, constVal2.x) == expected.x &&
|
|
atan(constVal1.xy, constVal2.xy) == expected.xy &&
|
|
atan(constVal1.xyz, constVal2.xyz) == expected.xyz &&
|
|
atan(constVal1.xyzw, constVal2.xyzw) == expected.xyzw) ? colorGreen : colorRed;
|
|
}
|