blob: 5eefb3877b72d5dca5e722e9251047dcc2283a96 [file] [log] [blame]
#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct Uniforms {
float4 colorGreen;
float4 colorRed;
};
struct Inputs {
};
struct Outputs {
float4 sk_FragColor [[color(0)]];
};
bool test_int() {
int4 result;
result.x = 1;
result.y = 1;
result.z = 1;
result.w = 1;
return bool(((result.x * result.y) * result.z) * result.w);
}
fragment Outputs fragmentMain(Inputs _in [[stage_in]], constant Uniforms& _uniforms [[buffer(0)]], bool _frontFacing [[front_facing]], float4 _fragCoord [[position]]) {
Outputs _out;
(void)_out;
float4 _0_result;
_0_result.x = 1.0;
_0_result.y = 1.0;
_0_result.z = 1.0;
_0_result.w = 1.0;
_out.sk_FragColor = bool(((_0_result.x * _0_result.y) * _0_result.z) * _0_result.w) && test_int() ? _uniforms.colorGreen : _uniforms.colorRed;
return _out;
}