xref: /aosp_15_r20/external/skia/resources/sksl/wgsl/CastVec4ToMat2x2.sksl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1void main() {
2  half2x2 m1 = half2x2(half4(1, 2, 3, 4));
3  half2x2 m2 = half2x2(float4(1, 2, 3, 4));
4  float2x2 m3 = float2x2(half4(1, 2, 3, 4));
5  float2x2 m4 = float2x2(float4(1, 2, 3, 4));
6
7  sk_FragColor = (m1 * m2 * half2x2(m3 * m4)[0]).xyxy;
8}
9