skia2/tests/sksl/intrinsics/golden/IsNan.glsl
John Stiles 3679cd1151 Add support for isinf/isnan intrinsics to SPIR-V.
Change-Id: I674d758c11071582e9fbedcda5596c540bfb5f71
Bug: skia:11054
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/342558
Commit-Queue: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2020-12-09 22:11:27 +00:00

7 lines
98 B
GLSL

out vec4 sk_FragColor;
in float a;
void main() {
sk_FragColor.x = float(isnan(a) ? 1 : 0);
}