xref: /aosp_15_r20/external/skia/tests/sksl/shared/MultipleAssignments.metal (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1#include <metal_stdlib>
2#include <simd/simd.h>
3#ifdef __clang__
4#pragma clang diagnostic ignored "-Wall"
5#endif
6using namespace metal;
7struct Inputs {
8};
9struct Outputs {
10    half4 sk_FragColor [[color(0)]];
11};
12fragment Outputs fragmentMain(Inputs _in [[stage_in]], bool _frontFacing [[front_facing]], float4 _fragCoord [[position]]) {
13    Outputs _out;
14    (void)_out;
15    float x;
16    float y;
17    x = (y = 1.0);
18    half a;
19    half b;
20    half c;
21    a = (b = (c = 0.0h));
22    _out.sk_FragColor = half4(a * b, half(x), c, half(y));
23    return _out;
24}
25