xref: /aosp_15_r20/external/skia/resources/sksl/intrinsics/Atanh.sksl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1uniform half4 inputVal, expected;
2uniform half4 colorGreen, colorRed;
3
4half4 main(float2 coords) {
5    const half4 constVal1 = half4(0, 0.2449186624037091292, 0.46211715726000975, 0.761594155955764);
6    return (atanh(inputVal.x)     == expected.x     &&
7            atanh(inputVal.xy)    == expected.xy    &&
8            atanh(inputVal.xyz)   == expected.xyz   &&
9            atanh(inputVal.xyzw)  == expected.xyzw  &&
10            atanh(constVal1.x)    == expected.x     &&
11            atanh(constVal1.xy)   == expected.xy    &&
12            atanh(constVal1.xyz)  == expected.xyz   &&
13            atanh(constVal1.xyzw) == expected.xyzw) ? colorGreen : colorRed;
14}
15