Update rive-cpp to 2.0 version
[platform/core/uifw/rive-tizen.git] / submodule / skia / resources / sksl / intrinsics / AbsInt.sksl
1 uniform half4 testInputs;
2 uniform half4 colorGreen, colorRed;
3
4 half4 main(float2 coords) {
5     const half4 constVal = half4(-1.25, 0, 0.75, 2.25);
6     int4 expected = int4(1, 0, 0, 2);
7     return (abs(int4(testInputs).x)    == expected.x     &&
8             abs(int4(testInputs).xy)   == expected.xy    &&
9             abs(int4(testInputs).xyz)  == expected.xyz   &&
10             abs(int4(testInputs).xyzw) == expected.xyzw  &&
11             abs(int4(constVal).x)      == expected.x     &&
12             abs(int4(constVal).xy)     == expected.xy    &&
13             abs(int4(constVal).xyz)    == expected.xyz   &&
14             abs(int4(constVal).xyzw)   == expected.xyzw) ? colorGreen : colorRed;
15 }