5676c57220
Expressions like `value == value` or `color.a != color.a` can be replaced by `true` or `false` on sight. The GLSL spec makes it clear that checking for NaN is optional: 4.7.1 Range and Precision "... NaNs are not required to be generated. Support for signaling NaNs is not required and exceptions are never raised. Operations and built-in functions that operate on a NaN are not required to return a NaN as the result." Change-Id: I2ad9f2dc505b638ea2904bef41b7a79a2b329551 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/381262 Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com> |
||
---|---|---|
.. | ||
AssignmentOps.glsl | ||
BoolFolding.glsl | ||
FloatFolding.glsl | ||
IntFoldingES2.glsl | ||
IntFoldingES3.glsl | ||
MatrixFoldingES2.glsl | ||
MatrixFoldingES3.glsl | ||
SelfAssignment.glsl | ||
ShortCircuitBoolFolding.glsl | ||
VectorScalarFolding.glsl | ||
VectorVectorFolding.glsl |