ba4b0e93e3
Previously `number(boolean)` casts were converted to a ternary during IR generation, and `boolean(number)` casts caused an error. Metal and GLSL should support this cast as written. SPIR-V needed a little bit of logic to handle converting the boolean to a number via OpSelect. Change-Id: I0069781e2b5a26a25c8625ab41c2392342bfd10d Bug: skia:11131 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/349066 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: John Stiles <johnstiles@google.com> |
||
---|---|---|
.. | ||
golden | ||
CastHalf4ToMat2x2.sksl | ||
CastMat2x2ToMat3x3.sksl | ||
CastMat2x3ToMat4x4.sksl | ||
CastMat4x4ToMat3x4.sksl | ||
CastMat4x4ToMat4x3.sksl | ||
InterfaceBlocksRequireBinding.sksl | ||
NumericGlobals.sksl | ||
OpaqueTypeInInterfaceBlock.sksl | ||
OpaqueTypeInStruct.sksl | ||
OutParams.sksl | ||
OutVarsRequireLocation.sksl | ||
SamplerGlobals.sksl | ||
SwizzleHelper.sksl |