1#pragma clang diagnostic ignored "-Wmissing-prototypes" 2 3#include <metal_stdlib> 4#include <simd/simd.h> 5 6using namespace metal; 7 8struct SSBO1 9{ 10 uint values1[1]; 11}; 12 13struct SSBO0 14{ 15 uint values0[1]; 16}; 17 18static inline __attribute__((always_inline)) 19void callee2(thread float4& gl_FragCoord, device SSBO1& v_7) 20{ 21 int _37 = int(gl_FragCoord.x); 22 v_7.values1[_37]++; 23} 24 25static inline __attribute__((always_inline)) 26void callee(thread float4& gl_FragCoord, device SSBO1& v_7, device SSBO0& v_9) 27{ 28 int _45 = int(gl_FragCoord.x); 29 v_9.values0[_45]++; 30 callee2(gl_FragCoord, v_7); 31} 32 33static inline __attribute__((always_inline)) 34void _29() 35{ 36} 37 38static inline __attribute__((always_inline)) 39void _31() 40{ 41} 42 43fragment void main0(device SSBO1& v_7 [[buffer(0), raster_order_group(0)]], device SSBO0& v_9 [[buffer(1), raster_order_group(0)]], float4 gl_FragCoord [[position]]) 44{ 45 callee(gl_FragCoord, v_7, v_9); 46 _29(); 47 _31(); 48} 49 50