8c9ccc8ad1
A constructor like `float2(one, two)` is not a compile-time constant, so we miss optimization opportunities like folding. Constant variables inside compound constructors are now replaced when optimization is on, so this would optimize down to `float2(1.0, 2.0)` and be eligible for folding. Change-Id: I80dd421f61d4eed21278805e2dc26d198a678e52 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/404657 Auto-Submit: John Stiles <johnstiles@google.com> Commit-Queue: Ethan Nicholas <ethannicholas@google.com> Reviewed-by: Ethan Nicholas <ethannicholas@google.com> |
||
---|---|---|
.. | ||
ArrayIndexing.rts | ||
ConstPreservation.rts | ||
ConversionConstructors.rts | ||
GlobalVariables.rts | ||
GLSLTypeNames.rts | ||
LoopFloat.rts | ||
LoopInt.rts | ||
SampleWithExplicitCoord.rts | ||
VectorIndexing.rts |