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
059d34594e
skia2
/
tests
/
sksl
/
errors
/
UniformVarWithInitializerExpression.glsl
5 lines
98 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Disallow initializers on uniform variables Bug: skia:11335 Change-Id: I88c952cbfe2d2c5920e17675da1674928f37b982 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/371480 Reviewed-by: John Stiles <johnstiles@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
2021-02-17 21:24:04 +00:00
### Compilation failed:
error: 1: 'uniform' variables cannot use initializer expressions
Force global initializers to be constant expressions Prevents us from accepting code that can't be correctly transformed to GLSL, like: uniform float x; float y = x; (Previously, writing code like that in a runtime effect would effectively produce the exact same code all the way through to GLSL, and the driver would fail to compile it). Bug: skia:11336 Change-Id: Iaa797587c4a4a7289ed59ce2736cf0bf0fc5bca3 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/384698 Reviewed-by: Ethan Nicholas <ethannicholas@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
2021-03-05 21:45:06 +00:00
1 error
Reference in New Issue
Copy Permalink