skia2/tests/sksl/workarounds/NegatedLdexp.glsl

12 lines
279 B
Plaintext
Raw Normal View History

#version 400
out vec4 sk_FragColor;
uniform float unknownFloat;
uniform int unknownInt;
void main() {
float m = unknownFloat;
int x = unknownInt;
sk_FragColor.x = ldexp(m, x * -1);
sk_FragColor.y = ldexp(m, (x + 1) * -1);
sk_FragColor.z = ldexp(m, -x - 1);
}