1#include <metal_stdlib> 2#include <simd/simd.h> 3#ifdef __clang__ 4#pragma clang diagnostic ignored "-Wall" 5#endif 6using namespace metal; 7constant const int SEVEN = 7; 8constant const int TEN = 10; 9constant const half4x4 MATRIXFIVE = half4x4(5.0h); 10struct Uniforms { 11 half4 colorGreen; 12 half4 colorRed; 13}; 14struct Inputs { 15}; 16struct Outputs { 17 half4 sk_FragColor [[color(0)]]; 18}; 19thread bool operator==(const half4x4 left, const half4x4 right);thread bool operator!=(const half4x4 left, const half4x4 right);thread bool operator==(const half4x4 left, const half4x4 right) {return all(left[0] == right[0]) && all(left[1] == right[1]) && all(left[2] == right[2]) && all(left[3] == right[3]);}thread bool operator!=(const half4x4 left, const half4x4 right) {return !(left == right);}bool verify_const_globals_biih44(int seven, int ten, half4x4 matrixFive) { 20 return (seven == 7 && ten == 10) && matrixFive == half4x4(5.0h); 21} 22fragment Outputs fragmentMain(Inputs _in [[stage_in]], constant Uniforms& _uniforms [[buffer(0)]], bool _frontFacing [[front_facing]], float4 _fragCoord [[position]]) { 23 Outputs _out; 24 (void)_out; 25 _out.sk_FragColor = verify_const_globals_biih44(SEVEN, TEN, MATRIXFIVE) ? _uniforms.colorGreen : _uniforms.colorRed; 26 return _out; 27} 28