skia2/resources/sksl/intrinsics/Sinh.sksl

15 lines
584 B
Plaintext
Raw Normal View History

uniform half4 inputVal, expected;
uniform half4 colorGreen, colorRed;
half4 main(float2 coords) {
const half4 constVal = half4(0);
return (sinh(inputVal.x) == expected.x &&
sinh(inputVal.xy) == expected.xy &&
sinh(inputVal.xyz) == expected.xyz &&
sinh(inputVal.xyzw) == expected.xyzw &&
sinh(constVal.x) == expected.x &&
sinh(constVal.xy) == expected.xy &&
sinh(constVal.xyz) == expected.xyz &&
sinh(constVal.xyzw) == expected.xyzw) ? colorGreen : colorRed;
}