1#include <metal_stdlib> 2#include <simd/simd.h> 3using namespace metal; 4struct Uniforms { 5 float unknownInput; 6}; 7struct Inputs { 8}; 9struct Outputs { 10 half4 sk_FragColor [[color(0)]]; 11}; 12fragment Outputs fragmentMain(Inputs _in [[stage_in]], constant Uniforms& _uniforms [[buffer(0)]], bool _frontFacing [[front_facing]], float4 _fragCoord [[position]]) { 13 Outputs _out; 14 (void)_out; 15 bool b = true; 16 short s = short(_uniforms.unknownInput); 17 int i = int(_uniforms.unknownInput); 18 ushort us = ushort(_uniforms.unknownInput); 19 uint ui = uint(_uniforms.unknownInput); 20 half h = half(_uniforms.unknownInput); 21 float f = _uniforms.unknownInput; 22 short s2s = s; 23 short i2s = short(i); 24 short us2s = short(us); 25 short ui2s = short(ui); 26 short h2s = short(h); 27 short f2s = short(f); 28 short b2s = short(b); 29 int s2i = int(s); 30 int i2i = i; 31 int us2i = int(us); 32 int ui2i = int(ui); 33 int h2i = int(h); 34 int f2i = int(f); 35 int b2i = int(b); 36 ushort s2us = ushort(s); 37 ushort i2us = ushort(i); 38 ushort us2us = us; 39 ushort ui2us = ushort(ui); 40 ushort h2us = ushort(h); 41 ushort f2us = ushort(f); 42 ushort b2us = ushort(b); 43 uint s2ui = uint(s); 44 uint i2ui = uint(i); 45 uint us2ui = uint(us); 46 uint ui2ui = ui; 47 uint h2ui = uint(h); 48 uint f2ui = uint(f); 49 uint b2ui = uint(b); 50 float s2f = float(s); 51 float i2f = float(i); 52 float us2f = float(us); 53 float ui2f = float(ui); 54 float h2f = float(h); 55 float f2f = f; 56 float b2f = float(b); 57 _out.sk_FragColor.x = (((((((((((((((((((((half(s) + half(i)) + half(us)) + half(ui)) + h) + half(f)) + half(s2s)) + half(i2s)) + half(us2s)) + half(ui2s)) + half(h2s)) + half(f2s)) + half(b2s)) + half(s2i)) + half(i2i)) + half(us2i)) + half(ui2i)) + half(h2i)) + half(f2i)) + half(b2i)) + half(s2us)) + half(i2us)) + half(us2us); 58 _out.sk_FragColor.x = _out.sk_FragColor.x + ((((((((((((((((half(ui2us) + half(h2us)) + half(f2us)) + half(b2us)) + half(s2ui)) + half(i2ui)) + half(us2ui)) + half(ui2ui)) + half(h2ui)) + half(f2ui)) + half(b2ui)) + half(s2f)) + half(i2f)) + half(us2f)) + half(ui2f)) + half(h2f)) + half(f2f)) + half(b2f); 59 return _out; 60} 61