Update rive-cpp to 2.0 version
[platform/core/uifw/rive-tizen.git] / submodule / skia / tests / sksl / metal / CastHalf4ToMat2x2.metal
1 #include <metal_stdlib>
2 #include <simd/simd.h>
3 using namespace metal;
4 struct Inputs {
5 };
6 struct Outputs {
7     half4 sk_FragColor [[color(0)]];
8 };
9 fragment Outputs fragmentMain(Inputs _in [[stage_in]], bool _frontFacing [[front_facing]], float4 _fragCoord [[position]]) {
10     Outputs _out;
11     (void)_out;
12     half2x2 m1 = half2x2(half2(1.0h, 2.0h), half2(3.0h, 4.0h));
13     _out.sk_FragColor = m1[0].xyxy;
14     return _out;
15 }