skia2/tests/sksl/intrinsics/golden/Modf.glsl
John Stiles 01957273e7 Add SPIR-V support for modf intrinsic.
Change-Id: I887e700a7bf11bf2d5359c9721798f72f00e53f3
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/342756
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2020-12-10 14:21:18 +00:00

8 lines
97 B
GLSL

out vec4 sk_FragColor;
in float a;
in float b;
void main() {
sk_FragColor.x = modf(a, b);
}