1#include <metal_stdlib> 2#include <simd/simd.h> 3using namespace metal; 4struct Inputs { 5}; 6struct Outputs { 7 float4 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 r; 13 float g; 14 r = 0.0; 15 g = 1.0; 16 _out.sk_FragColor = float4(r, g, 0.0, 1.0); 17 return _out; 18} 19