1#include <metal_stdlib> 2#include <simd/simd.h> 3using namespace metal; 4struct Inputs { 5}; 6struct Outputs { 7 float4 sk_FragColor [[color(0)]]; 8}; 9const array<float, 4> test = array<float, 4>{1.0, 2.0, 3.0, 4.0}; 10fragment Outputs fragmentMain(Inputs _in [[stage_in]], bool _frontFacing [[front_facing]], float4 _fragCoord [[position]]) { 11 Outputs _out; 12 (void)_out; 13 _out.sk_FragColor = float4(_globals.test[0], _globals.test[1], _globals.test[2], _globals.test[3]); 14 return _out; 15} 16