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 b = 2.0; 13 float c = 3.0; 14 for (int x = 0;x < 1; ++x) { 15 continue; 16 } 17 float d = c; 18 b++; 19 d++; 20 _out.sk_FragColor = half4(half(b == 2.0), half(b == 3.0), half(d == 5.0), half(d == 4.0)); 21 return _out; 22} 23