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
b41d5bb3a7
skia2
/
tests
/
sksl
/
folding
/
IntFoldingES3.glsl
8 lines
89 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Update folding tests to return pass/fail status. A passing test returns solid green. Failing tests are written to return solid red, but drawing any other color than green can be interpreted as a test failure. Additionally, tests which cannot compile as RuntimeEffects (due to non-ES2-compatible features) have been split into an ES2-compatible part and an ES3 part. Change-Id: I3f53121d9de0ae4c4e7f1de3177d067811980b55 Bug: skia:11009 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/356999 Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
2021-01-22 14:51:13 +00:00
Add helper uniforms to Runtime Effect tests. This lets us use descriptive names like `colorRed` and `colorGreen` instead of `half4(1,0,0,1)` and `half4(0,1,0,1)`. It also lets us use actual unknown values instead of synthesizing sorta-kinda-unknowns by calling sqrt. Change-Id: I61481c33b7ff42182955777b05cfa5fcc13e0efc Reviewed-on: https://skia-review.googlesource.com/c/skia/+/359567 Reviewed-by: Ethan Nicholas <ethannicholas@google.com> Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: John Stiles <johnstiles@google.com>
2021-01-26 21:28:12 +00:00
uniform vec4 colorRed;
uniform vec4 colorGreen;
Update folding tests to return pass/fail status. A passing test returns solid green. Failing tests are written to return solid red, but drawing any other color than green can be interpreted as a test failure. Additionally, tests which cannot compile as RuntimeEffects (due to non-ES2-compatible features) have been split into an ES2-compatible part and an ES3 part. Change-Id: I3f53121d9de0ae4c4e7f1de3177d067811980b55 Bug: skia:11009 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/356999 Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
2021-01-22 14:51:13 +00:00
vec4 main() {
Add helper uniforms to Runtime Effect tests. This lets us use descriptive names like `colorRed` and `colorGreen` instead of `half4(1,0,0,1)` and `half4(0,1,0,1)`. It also lets us use actual unknown values instead of synthesizing sorta-kinda-unknowns by calling sqrt. Change-Id: I61481c33b7ff42182955777b05cfa5fcc13e0efc Reviewed-on: https://skia-review.googlesource.com/c/skia/+/359567 Reviewed-by: Ethan Nicholas <ethannicholas@google.com> Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: John Stiles <johnstiles@google.com>
2021-01-26 21:28:12 +00:00
return colorGreen;
Update folding tests to return pass/fail status. A passing test returns solid green. Failing tests are written to return solid red, but drawing any other color than green can be interpreted as a test failure. Additionally, tests which cannot compile as RuntimeEffects (due to non-ES2-compatible features) have been split into an ES2-compatible part and an ES3 part. Change-Id: I3f53121d9de0ae4c4e7f1de3177d067811980b55 Bug: skia:11009 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/356999 Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
2021-01-22 14:51:13 +00:00
}
Reference in New Issue
Copy Permalink