This website requires JavaScript.
ReeceSX
Explore
Aurora
Register
Sign In
AuroraMiddleware
/
skia2
Watch
1
Star
0
Fork
0
You've already forked skia2
Code
Issues
Pull Requests
Projects
Releases
Wiki
Activity
33ef30ec68
skia2
/
tests
/
sksl
/
intrinsics
/
IsNan.glsl
7 lines
103 B
Plaintext
Raw
Normal View
History
Unescape
Escape
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 21:22:12 +00:00
out vec4 sk_FragColor;
Change sksl tests to avoid SPIR-V validation errors 'in' variables without locations aren't allowed. Use uniforms instead. Bug: skia:11738 Change-Id: Ic066106deb7409cff154b4be7cfb3e03a7025c7d Reviewed-on: https://skia-review.googlesource.com/c/skia/+/385000 Commit-Queue: Brian Osman <brianosman@google.com> Reviewed-by: John Stiles <johnstiles@google.com>
2021-03-15 18:58:57 +00:00
uniform float a;
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 21:22:12 +00:00
void main() {
sk_FragColor.x = float(isnan(a) ? 1 : 0);
}
Reference in New Issue
Copy Permalink