| 1 |
#pragma clang diagnostic ignored "-Wmissing-prototypes" |
| 2 |
|
| 3 |
#include <metal_stdlib> |
| 4 |
#include <simd/simd.h> |
| 5 |
|
| 6 |
using namespace metal; |
| 7 |
|
| 8 |
struct SSBO1 |
| 9 |
{ |
| 10 |
uint values1[1]; |
| 11 |
}; |
| 12 |
|
| 13 |
struct SSBO0 |
| 14 |
{ |
| 15 |
uint values0[1]; |
| 16 |
}; |
| 17 |
|
| 18 |
static inline __attribute__((always_inline)) |
| 19 |
void callee2(device SSBO1& v_14, thread float4& gl_FragCoord) |
| 20 |
{ |
| 21 |
int _25 = int(gl_FragCoord.x); |
| 22 |
v_14.values1[_25]++; |
| 23 |
} |
| 24 |
|
| 25 |
static inline __attribute__((always_inline)) |
| 26 |
void callee(device SSBO1& v_14, thread float4& gl_FragCoord, device SSBO0& v_35) |
| 27 |
{ |
| 28 |
int _38 = int(gl_FragCoord.x); |
| 29 |
v_35.values0[_38]++; |
| 30 |
callee2(v_14, gl_FragCoord); |
| 31 |
} |
| 32 |
|
| 33 |
fragment void main0(device SSBO1& v_14 [[buffer(0), raster_order_group(0)]], device SSBO0& v_35 [[buffer(1), raster_order_group(0)]], float4 gl_FragCoord [[position]]) |
| 34 |
{ |
| 35 |
callee(v_14, gl_FragCoord, v_35); |
| 36 |
} |
| 37 |
|