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
3cbba1a848
skia2
/
tests
/
sksl
/
intrinsics
/
IntBitsToFloat.glsl
7 lines
95 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Fix floatBitsToInt family of intrinsics and add tests. floatBitsToUint was missing from our intrinsic list entirely, and u?intBitsToFloat were misspelled. These intrinsics aren't implemented in SPIR-V or Metal either, but that will be handled in followup CLs. Change-Id: Iaf9b9d5a2e46e25d41eef71903fad8bd1c177d4e Bug: skia:11071 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/342757 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Brian Osman <brianosman@google.com> Auto-Submit: John Stiles <johnstiles@google.com>
2020-12-09 23:00:47 +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 int a;
Fix floatBitsToInt family of intrinsics and add tests. floatBitsToUint was missing from our intrinsic list entirely, and u?intBitsToFloat were misspelled. These intrinsics aren't implemented in SPIR-V or Metal either, but that will be handled in followup CLs. Change-Id: Iaf9b9d5a2e46e25d41eef71903fad8bd1c177d4e Bug: skia:11071 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/342757 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Brian Osman <brianosman@google.com> Auto-Submit: John Stiles <johnstiles@google.com>
2020-12-09 23:00:47 +00:00
void main() {
sk_FragColor.x = intBitsToFloat(a);
}
Reference in New Issue
Copy Permalink