skia2/tests/sksl/intrinsics/IsInf.sksl
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

2 lines
62 B
Plaintext

in half a; void main() { sk_FragColor.x = isinf(a) ? 1 : 0; }