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
cfefec07ab
skia2
/
tests
/
sksl
/
intrinsics
/
Fract.glsl
7 lines
83 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Add tests for SkSL intrinsic functions. This does not give us 100% coverage of intrinsics yet, but it is a pretty good start. Change-Id: I97d49324db1afd9f2975c2eeafbacdead710d4aa Bug: skia:11054 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/341977 Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
2020-12-09 21:19:37 +00:00
out vec4 sk_FragColor;
Revert "Add intrinsic tests for mod() and fract()." This reverts commit f06aeedcf168be324ec86ed7adc616ba19fb9c31. Reason for revert: fract failing on Tegra3 Original change's description: > Add intrinsic tests for mod() and fract(). > > These are fully supported by ES2 and will be covered by dm tests. > > Change-Id: Iebf4effe8ab928662b55c0bb5b09e8b2a61487ca > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/362460 > Commit-Queue: John Stiles <johnstiles@google.com> > Commit-Queue: Ethan Nicholas <ethannicholas@google.com> > Auto-Submit: John Stiles <johnstiles@google.com> > Reviewed-by: Ethan Nicholas <ethannicholas@google.com> TBR=brianosman@google.com,ethannicholas@google.com,johnstiles@google.com Change-Id: Ib2071c90addd01e3b299553e020950a89eb01e4d No-Presubmit: true No-Tree-Checks: true No-Try: true Reviewed-on: https://skia-review.googlesource.com/c/skia/+/363036 Reviewed-by: Mike Klein <mtklein@google.com> Commit-Queue: Mike Klein <mtklein@google.com>
2021-01-30 13:38:21 +00:00
in float a;
void main() {
sk_FragColor.x = fract(a);
Add tests for SkSL intrinsic functions. This does not give us 100% coverage of intrinsics yet, but it is a pretty good start. Change-Id: I97d49324db1afd9f2975c2eeafbacdead710d4aa Bug: skia:11054 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/341977 Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
2020-12-09 21:19:37 +00:00
}
Reference in New Issue
Copy Permalink