1049d82061
This adds sinh, cosh, tanh, asinh, acosh, and atanh. We now also support compile-time optimization for the arc functions. Change-Id: I688f579b50403db534622b82926aa20d1f445341 Bug: skia:12202 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/439319 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>
10 lines
440 B
GLSL
10 lines
440 B
GLSL
|
|
out vec4 sk_FragColor;
|
|
uniform vec4 input;
|
|
uniform vec4 expected;
|
|
uniform vec4 colorGreen;
|
|
uniform vec4 colorRed;
|
|
vec4 main() {
|
|
return ((((((asinh(input.x) == expected.x && asinh(input.xy) == expected.xy) && asinh(input.xyz) == expected.xyz) && asinh(input) == expected) && 0.0 == expected.x) && vec2(0.0, 0.0) == expected.xy) && vec3(0.0, 0.0, 1.0) == expected.xyz) && vec4(0.0, 0.0, 1.0, -1.0) == expected ? colorGreen : colorRed;
|
|
}
|