1#include <metal_stdlib> 2#include <simd/simd.h> 3using namespace metal; 4struct Inputs { 5}; 6struct Outputs { 7 half4 sk_FragColor [[color(0)]]; 8}; 9fragment Outputs fragmentMain(Inputs _in [[stage_in]], bool _frontFacing [[front_facing]], float4 _fragCoord [[position]]) { 10 Outputs _out; 11 (void)_out; 12 float x; 13 float y; 14 x = (y = 1.0); 15 half a; 16 half b; 17 half c; 18 a = (b = (c = 0.0h)); 19 _out.sk_FragColor = half4(a * b, half(x), c, half(y)); 20 return _out; 21} 22