skia2/tests/sksl/metal
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
..
golden Add support for number(boolean) and boolean(number) casts in SkSL. 2021-01-05 21:19:45 +00:00
CastHalf4ToMat2x2.sksl
CastMat2x2ToMat3x3.sksl
CastMat2x3ToMat4x4.sksl
CastMat4x4ToMat3x4.sksl
CastMat4x4ToMat4x3.sksl
InterfaceBlocksRequireBinding.sksl Enforce that layout(binding=...) is set on interface blocks in Metal. 2020-12-04 19:30:35 +00:00
NumericGlobals.sksl
OpaqueTypeInInterfaceBlock.sksl Detect unsupported types for MemoryLayout and report errors. 2020-11-16 19:14:48 +00:00
OpaqueTypeInStruct.sksl Detect unsupported types for MemoryLayout and report errors. 2020-11-16 19:14:48 +00:00
OutParams.sksl Detect cases in Metal where out params are swizzled. 2020-12-07 17:12:09 +00:00
OutVarsRequireLocation.sksl Enforce layout(location=...) on Metal out variables. 2020-12-01 20:41:15 +00:00
SamplerGlobals.sksl
SwizzleHelper.sksl Improve Metal support for out parameters. 2020-12-09 21:13:57 +00:00