#include #include using namespace metal; struct SSBO { char i8[16]; uchar u8[16]; }; struct Push { char i8; uchar u8; }; struct UBO { char i8; uchar u8; }; struct main0_out { int4 FragColorInt [[color(0)]]; uint4 FragColorUint [[color(1)]]; }; struct main0_in { int4 vColor [[user(locn0)]]; }; fragment main0_out main0(main0_in in [[stage_in]], constant Push& registers [[buffer(0)]], constant UBO& ubo [[buffer(1)]], device SSBO& ssbo [[buffer(2)]]) { main0_out out = {}; short _196 = 10; int _197 = 20; char2 _198 = as_type(_196); char4 _199 = as_type(_197); _196 = as_type(_198); _197 = as_type(_199); ssbo.i8[0] = _199.x; ssbo.i8[1] = _199.y; ssbo.i8[2] = _199.z; ssbo.i8[3] = _199.w; ushort _220 = 10u; uint _221 = 20u; uchar2 _222 = as_type(_220); uchar4 _223 = as_type(_221); _220 = as_type(_222); _221 = as_type(_223); ssbo.u8[0] = _223.x; ssbo.u8[1] = _223.y; ssbo.u8[2] = _223.z; ssbo.u8[3] = _223.w; char4 _246 = char4(in.vColor); char4 _244 = _246; _244 += char4(registers.i8); _244 += char4(-40); _244 += char4(-50); _244 += char4(char(10), char(20), char(30), char(40)); _244 += char4(ssbo.i8[4]); _244 += char4(ubo.i8); out.FragColorInt = int4(_244); uchar4 _271 = uchar4(_246); _271 += uchar4(registers.u8); _271 += uchar4(216); _271 += uchar4(206); _271 += uchar4(uchar(10), uchar(20), uchar(30), uchar(40)); _271 += uchar4(ssbo.u8[4]); _271 += uchar4(ubo.u8); out.FragColorUint = uint4(_271); return out; }