| 1 |
#include <metal_stdlib> |
| 2 |
#include <simd/simd.h> |
| 3 |
|
| 4 |
using namespace metal; |
| 5 |
|
| 6 |
#ifndef SPIRV_CROSS_CONSTANT_ID_1 |
| 7 |
#define SPIRV_CROSS_CONSTANT_ID_1 1.0 |
| 8 |
#endif |
| 9 |
constant float a = SPIRV_CROSS_CONSTANT_ID_1; |
| 10 |
#ifndef SPIRV_CROSS_CONSTANT_ID_2 |
| 11 |
#define SPIRV_CROSS_CONSTANT_ID_2 2.0 |
| 12 |
#endif |
| 13 |
constant float b = SPIRV_CROSS_CONSTANT_ID_2; |
| 14 |
#ifndef SPIRV_CROSS_CONSTANT_ID_3 |
| 15 |
#define SPIRV_CROSS_CONSTANT_ID_3 3 |
| 16 |
#endif |
| 17 |
constant int c = SPIRV_CROSS_CONSTANT_ID_3; |
| 18 |
constant uint _18 = (uint(c) + 0u); |
| 19 |
constant int _21 = (-c); |
| 20 |
constant int _23 = (~c); |
| 21 |
#ifndef SPIRV_CROSS_CONSTANT_ID_4 |
| 22 |
#define SPIRV_CROSS_CONSTANT_ID_4 4 |
| 23 |
#endif |
| 24 |
constant int d = SPIRV_CROSS_CONSTANT_ID_4; |
| 25 |
constant int _26 = (c + d); |
| 26 |
constant int _28 = (c - d); |
| 27 |
constant int _30 = (c * d); |
| 28 |
constant int _32 = (c / d); |
| 29 |
#ifndef SPIRV_CROSS_CONSTANT_ID_5 |
| 30 |
#define SPIRV_CROSS_CONSTANT_ID_5 5u |
| 31 |
#endif |
| 32 |
constant uint e = SPIRV_CROSS_CONSTANT_ID_5; |
| 33 |
#ifndef SPIRV_CROSS_CONSTANT_ID_6 |
| 34 |
#define SPIRV_CROSS_CONSTANT_ID_6 6u |
| 35 |
#endif |
| 36 |
constant uint f = SPIRV_CROSS_CONSTANT_ID_6; |
| 37 |
constant uint _36 = (e / f); |
| 38 |
constant int _38 = (c % d); |
| 39 |
constant uint _40 = (e % f); |
| 40 |
constant int _42 = (c >> d); |
| 41 |
constant uint _44 = (e >> f); |
| 42 |
constant int _46 = (c << d); |
| 43 |
constant int _48 = (c | d); |
| 44 |
constant int _50 = (c ^ d); |
| 45 |
constant int _52 = (c & d); |
| 46 |
#ifndef SPIRV_CROSS_CONSTANT_ID_7 |
| 47 |
#define SPIRV_CROSS_CONSTANT_ID_7 false |
| 48 |
#endif |
| 49 |
constant bool g = SPIRV_CROSS_CONSTANT_ID_7; |
| 50 |
#ifndef SPIRV_CROSS_CONSTANT_ID_8 |
| 51 |
#define SPIRV_CROSS_CONSTANT_ID_8 true |
| 52 |
#endif |
| 53 |
constant bool h = SPIRV_CROSS_CONSTANT_ID_8; |
| 54 |
constant bool _58 = (g || h); |
| 55 |
constant bool _60 = (g && h); |
| 56 |
constant bool _62 = (!g); |
| 57 |
constant bool _64 = (g == h); |
| 58 |
constant bool _66 = (g != h); |
| 59 |
constant bool _68 = (c == d); |
| 60 |
constant bool _70 = (c != d); |
| 61 |
constant bool _72 = (c < d); |
| 62 |
constant bool _74 = (e < f); |
| 63 |
constant bool _76 = (c > d); |
| 64 |
constant bool _78 = (e > f); |
| 65 |
constant bool _80 = (c <= d); |
| 66 |
constant bool _82 = (e <= f); |
| 67 |
constant bool _84 = (c >= d); |
| 68 |
constant bool _86 = (e >= f); |
| 69 |
constant int _92 = int(e + 0u); |
| 70 |
constant bool _94 = (c != int(0u)); |
| 71 |
constant bool _96 = (e != 0u); |
| 72 |
constant int _100 = int(g); |
| 73 |
constant uint _103 = uint(g); |
| 74 |
|
| 75 |
struct main0_out |
| 76 |
{ |
| 77 |
float4 FragColor [[color(0)]]; |
| 78 |
}; |
| 79 |
|
| 80 |
fragment main0_out main0() |
| 81 |
{ |
| 82 |
main0_out out = {}; |
| 83 |
float t0 = a; |
| 84 |
float t1 = b; |
| 85 |
uint c0 = _18; |
| 86 |
int c1 = _21; |
| 87 |
int c2 = _23; |
| 88 |
int c3 = _26; |
| 89 |
int c4 = _28; |
| 90 |
int c5 = _30; |
| 91 |
int c6 = _32; |
| 92 |
uint c7 = _36; |
| 93 |
int c8 = _38; |
| 94 |
uint c9 = _40; |
| 95 |
int c10 = _42; |
| 96 |
uint c11 = _44; |
| 97 |
int c12 = _46; |
| 98 |
int c13 = _48; |
| 99 |
int c14 = _50; |
| 100 |
int c15 = _52; |
| 101 |
bool c16 = _58; |
| 102 |
bool c17 = _60; |
| 103 |
bool c18 = _62; |
| 104 |
bool c19 = _64; |
| 105 |
bool c20 = _66; |
| 106 |
bool c21 = _68; |
| 107 |
bool c22 = _70; |
| 108 |
bool c23 = _72; |
| 109 |
bool c24 = _74; |
| 110 |
bool c25 = _76; |
| 111 |
bool c26 = _78; |
| 112 |
bool c27 = _80; |
| 113 |
bool c28 = _82; |
| 114 |
bool c29 = _84; |
| 115 |
bool c30 = _86; |
| 116 |
int c31 = c8 + c3; |
| 117 |
int c32 = _92; |
| 118 |
bool c33 = _94; |
| 119 |
bool c34 = _96; |
| 120 |
int c35 = _100; |
| 121 |
uint c36 = _103; |
| 122 |
float c37 = float(g); |
| 123 |
out.FragColor = float4(t0 + t1); |
| 124 |
return out; |
| 125 |
} |
| 126 |
|