skia2/resources/sksl/runtime
Brian Osman fc4b9919d3 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-15 16:54:05 +00:00
..
ArrayIndexing.rte
ConstPreservation.rte Test that we propagate 'const' to the GPU backend of runtime effects 2021-03-09 23:26:00 +00:00
ConversionConstructors.rte
GlobalVariables.rte Force global initializers to be constant expressions 2021-03-15 16:54:05 +00:00
LoopFloat.rte
LoopInt.rte
SampleWithConstantMatrix.rte
SampleWithExplicitCoord.rte
SampleWithUniformMatrix.rte
SampleWithVariableMatrix.rte
VectorIndexing.rte