skia2/tests/sksl/shared/golden/FrExp.glsl
John Stiles f49c296d4a Add $genHType versions of frexp and ldexp.
Change-Id: I2c958b7aca972b7eec07e10d6c8af95fa53e761a
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/342117
Auto-Submit: John Stiles <johnstiles@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2020-12-09 01:05:23 +00:00

10 lines
187 B
GLSL

out vec4 sk_FragColor;
void main() {
int exp1;
float a = frexp(0.5, exp1);
sk_FragColor = vec4(float(exp1));
ivec3 exp3;
sk_FragColor.xyz = frexp(vec3(3.5), exp3);
}