| 1 |
#include <metal_stdlib> |
| 2 |
#include <simd/simd.h> |
| 3 |
|
| 4 |
using namespace metal; |
| 5 |
|
| 6 |
constant float a_tmp [[function_constant(1)]]; |
| 7 |
constant float a = is_function_constant_defined(a_tmp) ? a_tmp : 1.0; |
| 8 |
constant float b_tmp [[function_constant(2)]]; |
| 9 |
constant float b = is_function_constant_defined(b_tmp) ? b_tmp : 2.0; |
| 10 |
|
| 11 |
struct main0_out |
| 12 |
{ |
| 13 |
float4 FragColor [[color(0)]]; |
| 14 |
}; |
| 15 |
|
| 16 |
struct main0_in |
| 17 |
{ |
| 18 |
float2 c [[user(locn2)]]; |
| 19 |
float2 d [[user(locn3)]]; |
| 20 |
float3 e [[user(locn4)]]; |
| 21 |
float3 f [[user(locn5)]]; |
| 22 |
float4 g [[user(locn6)]]; |
| 23 |
float4 h [[user(locn7)]]; |
| 24 |
}; |
| 25 |
|
| 26 |
fragment main0_out main0(main0_in in [[stage_in]]) |
| 27 |
{ |
| 28 |
main0_out out = {}; |
| 29 |
float t0 = a; |
| 30 |
float t1 = b; |
| 31 |
bool c1 = (isunordered(a, b) || a == b); |
| 32 |
bool c2 = (isunordered(a, b) || a != b); |
| 33 |
bool c3 = (isunordered(a, b) || a < b); |
| 34 |
bool c4 = (isunordered(a, b) || a > b); |
| 35 |
bool c5 = (isunordered(a, b) || a <= b); |
| 36 |
bool c6 = (isunordered(a, b) || a >= b); |
| 37 |
bool2 c7 = (isunordered(in.c, in.d) || in.c == in.d); |
| 38 |
bool2 c8 = (isunordered(in.c, in.d) || in.c != in.d); |
| 39 |
bool2 c9 = (isunordered(in.c, in.d) || in.c < in.d); |
| 40 |
bool2 c10 = (isunordered(in.c, in.d) || in.c > in.d); |
| 41 |
bool2 c11 = (isunordered(in.c, in.d) || in.c <= in.d); |
| 42 |
bool2 c12 = (isunordered(in.c, in.d) || in.c >= in.d); |
| 43 |
bool3 c13 = (isunordered(in.e, in.f) || in.e == in.f); |
| 44 |
bool3 c14 = (isunordered(in.e, in.f) || in.e != in.f); |
| 45 |
bool3 c15 = (isunordered(in.e, in.f) || in.e < in.f); |
| 46 |
bool3 c16 = (isunordered(in.e, in.f) || in.e > in.f); |
| 47 |
bool3 c17 = (isunordered(in.e, in.f) || in.e <= in.f); |
| 48 |
bool3 c18 = (isunordered(in.e, in.f) || in.e >= in.f); |
| 49 |
bool4 c19 = (isunordered(in.g, in.h) || in.g == in.h); |
| 50 |
bool4 c20 = (isunordered(in.g, in.h) || in.g != in.h); |
| 51 |
bool4 c21 = (isunordered(in.g, in.h) || in.g < in.h); |
| 52 |
bool4 c22 = (isunordered(in.g, in.h) || in.g > in.h); |
| 53 |
bool4 c23 = (isunordered(in.g, in.h) || in.g <= in.h); |
| 54 |
bool4 c24 = (isunordered(in.g, in.h) || in.g >= in.h); |
| 55 |
out.FragColor = float4(t0 + t1); |
| 56 |
return out; |
| 57 |
} |
| 58 |
|