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
d8fc95dc02
skia2
/
tests
/
sksl
/
folding
/
BoolFolding.glsl
6 lines
55 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Convert several SkSL->GLSL unit tests to golden outputs. The new test files are intended to be identical to the unit tests in every meaningful way. (Comments and formatting are not preserved exactly.) In cases where a unit-test method contained more than one test, multiple test files were created; in these cases, new names were invented to match the apparent intent of each invocation. Followup CLs will continue to migrate additional tests. Change-Id: I785c6761ba7ee2b25b5ddc0108321734be23b77c Bug: skia:10694 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/316678 Commit-Queue: John Stiles <johnstiles@google.com> Reviewed-by: Ethan Nicholas <ethannicholas@google.com> Auto-Submit: John Stiles <johnstiles@google.com>
2020-09-14 21:30:13 +00:00
Implement constant folding for (bool == bool) and (bool != bool). We already had support for &&, ||, ^^ but somehow the common cases of == and != were not implemented in the constant-folder. This CL also updates the test to return a green/red color on success or failure, instead of assigning arbitrary numbers into sk_FragColor that don't mean anything. The long-term plan is to signal success or failure of each test by color code; we can display these colors as swatches in a GM slide for testing purposes. Change-Id: I0810108b3c6b656a60cd8aa64ceefd765eff0157 Bug: skia:11112 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/355984 Auto-Submit: John Stiles <johnstiles@google.com> Commit-Queue: Brian Osman <brianosman@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
2021-01-20 00:00:31 +00:00
vec4 main() {
return vec4(0.0, 1.0, 0.0, 1.0);
Convert several SkSL->GLSL unit tests to golden outputs. The new test files are intended to be identical to the unit tests in every meaningful way. (Comments and formatting are not preserved exactly.) In cases where a unit-test method contained more than one test, multiple test files were created; in these cases, new names were invented to match the apparent intent of each invocation. Followup CLs will continue to migrate additional tests. Change-Id: I785c6761ba7ee2b25b5ddc0108321734be23b77c Bug: skia:10694 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/316678 Commit-Queue: John Stiles <johnstiles@google.com> Reviewed-by: Ethan Nicholas <ethannicholas@google.com> Auto-Submit: John Stiles <johnstiles@google.com>
2020-09-14 21:30:13 +00:00
}
Reference in New Issue
Copy Permalink