skia2/tests/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.skvm Migrate SkSL test inputs to the resources/ directory. 2021-01-22 18:57:29 +00:00
ArrayIndexing.stage Avoid generating unused variables in the Inliner. 2021-02-25 19:18:19 +00:00
ConstPreservation.skvm Test that we propagate 'const' to the GPU backend of runtime effects 2021-03-09 23:26:00 +00:00
ConstPreservation.stage Preserve 'const' on globals and function parameters in runtime effects 2021-03-13 13:32:27 +00:00
ConversionConstructors.skvm Migrate SkSL test inputs to the resources/ directory. 2021-01-22 18:57:29 +00:00
ConversionConstructors.stage Add .stage output to skslc for runtime effects 2021-02-09 20:11:56 +00:00
GlobalVariables.skvm Support initializers on global variables in SkSL to SkVM 2021-02-17 20:40:32 +00:00
GlobalVariables.stage Force global initializers to be constant expressions 2021-03-15 16:54:05 +00:00
LoopFloat.skvm Migrate SkSL test inputs to the resources/ directory. 2021-01-22 18:57:29 +00:00
LoopFloat.stage Avoid generating unused variables in the Inliner. 2021-02-25 19:18:19 +00:00
LoopInt.skvm Migrate SkSL test inputs to the resources/ directory. 2021-01-22 18:57:29 +00:00
LoopInt.stage Avoid generating unused variables in the Inliner. 2021-02-25 19:18:19 +00:00
SampleWithConstantMatrix.skvm add fast_mul(F32,F32) 2021-02-11 01:13:01 +00:00
SampleWithConstantMatrix.stage In pipeline stage generator, never emit declarations for opaque types 2021-03-13 01:46:06 +00:00
SampleWithExplicitCoord.skvm Migrate SkSL test inputs to the resources/ directory. 2021-01-22 18:57:29 +00:00
SampleWithExplicitCoord.stage In pipeline stage generator, never emit declarations for opaque types 2021-03-13 01:46:06 +00:00
SampleWithUniformMatrix.skvm Migrate SkSL test inputs to the resources/ directory. 2021-01-22 18:57:29 +00:00
SampleWithUniformMatrix.stage In pipeline stage generator, never emit declarations for opaque types 2021-03-13 01:46:06 +00:00
SampleWithVariableMatrix.skvm add fast_mul(F32,F32) 2021-02-11 01:13:01 +00:00
SampleWithVariableMatrix.stage In pipeline stage generator, never emit declarations for opaque types 2021-03-13 01:46:06 +00:00
VectorIndexing.skvm Migrate SkSL test inputs to the resources/ directory. 2021-01-22 18:57:29 +00:00
VectorIndexing.stage Avoid generating unused variables in the Inliner. 2021-02-25 19:18:19 +00:00