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 bool3 B; 13 B.x = true; 14 B.y = true; 15 B.z = true; 16 float3 F; 17 F.x = 1.2300000190734863; 18 F.y = 0.0; 19 F.z = 1.0; 20 int3 I; 21 I.x = 1; 22 I.y = 1; 23 I.z = 1; 24 _out.sk_FragColor = float4((F.x * F.y) * F.z, float((B.x && B.y) && B.z), 0.0, float((I.x * I.y) * I.z)); 25 return _out; 26} 27