skia2/tests/sksl/metal
John Stiles f5c1d04ab2 Flatten out constructors nested inside constructors.
- float4(float2(1, 2), 3, 4)   -->  float4(1, 2, 3, 4)
- half3(z, half2(fn(x), y*2))  -->  half3(z, fn(x), y*2)

Single-argument constructors will be ignored by this optimization; these
might be casts or splats.

This had an unexpected side benefit of simplifying some Metal output,
as we need to output fewer Metal matrix construction helper functions
when matrices use more simple scalars for construction.

Change-Id: I0a161db060c107e35247901619291bf83801cb11
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/337400
Auto-Submit: John Stiles <johnstiles@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2020-11-23 21:29:53 +00:00
..
golden Flatten out constructors nested inside constructors. 2020-11-23 21:29:53 +00:00
CastHalf4ToMat2x2.sksl
CastMat2x2ToMat3x3.sksl
CastMat2x3ToMat4x4.sksl
CastMat4x4ToMat3x4.sksl
CastMat4x4ToMat4x3.sksl
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
SamplerGlobals.sksl