skia2/tests/sksl/metal/golden
John Stiles ba4b0e93e3 Add support for number(boolean) and boolean(number) casts in SkSL.
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>
2021-01-05 21:19:45 +00:00
..
CastHalf4ToMat2x2.metal Flatten out constructors nested inside constructors. 2020-11-23 21:29:53 +00:00
CastMat2x2ToMat3x3.metal
CastMat2x3ToMat4x4.metal
CastMat4x4ToMat3x4.metal
CastMat4x4ToMat4x3.metal
InterfaceBlocksRequireBinding.metal Enforce that layout(binding=...) is set on interface blocks in Metal. 2020-12-04 19:30:35 +00:00
NumericGlobals.metal Add newline to end of Metal's Globals struct definition. 2020-12-09 15:49:30 +00:00
OpaqueTypeInInterfaceBlock.metal Enforce additional restrictions on opaque types. 2020-12-22 22:24:24 +00:00
OpaqueTypeInStruct.metal Disallow opaque types in structs and interface blocks. 2020-11-17 15:25:43 +00:00
OutParams.metal Add support for number(boolean) and boolean(number) casts in SkSL. 2021-01-05 21:19:45 +00:00
OutVarsRequireLocation.metal Enforce layout(location=...) on Metal out variables. 2020-12-01 20:41:15 +00:00
SamplerGlobals.metal Add newline to end of Metal's Globals struct definition. 2020-12-09 15:49:30 +00:00
SwizzleHelper.metal Improve Metal support for out parameters. 2020-12-09 21:13:57 +00:00