dabb2891c4
A cast like `float(five)` or `int4(colorGreen)` will now detect const variables and replace the expression with its compile-time constant equivalent value. This can unblock further constant folding opportunities. (This CL is very similar in spirit to http://review.skia.org/404676) Change-Id: If78a2091770777b0caaaec696fe15a0f55d88c24 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/405683 Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Ethan Nicholas <ethannicholas@google.com> |
||
---|---|---|
.. | ||
ArrayFolding.glsl | ||
AssignmentOps.glsl | ||
BoolFolding.glsl | ||
CastFolding.glsl | ||
FloatFolding.glsl | ||
IntFoldingES2.glsl | ||
IntFoldingES3.glsl | ||
MatrixFoldingES2.glsl | ||
MatrixFoldingES3.glsl | ||
SelfAssignment.glsl | ||
ShortCircuitBoolFolding.glsl | ||
SwizzleFolding.glsl | ||
VectorScalarFolding.glsl | ||
VectorVectorFolding.glsl |