2019-09-04 10:26:34 +00:00
|
|
|
#pragma clang diagnostic ignored "-Wmissing-prototypes"
|
|
|
|
|
|
|
|
#include <metal_stdlib>
|
|
|
|
#include <simd/simd.h>
|
|
|
|
|
|
|
|
using namespace metal;
|
|
|
|
|
|
|
|
struct SSBO1
|
|
|
|
{
|
2019-10-24 10:22:30 +00:00
|
|
|
uint values1[1];
|
2019-09-04 10:26:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct SSBO0
|
|
|
|
{
|
2019-10-24 10:22:30 +00:00
|
|
|
uint values0[1];
|
2019-09-04 10:26:34 +00:00
|
|
|
};
|
|
|
|
|
2019-09-20 13:28:46 +00:00
|
|
|
static inline __attribute__((always_inline))
|
|
|
|
void callee2(thread float4& gl_FragCoord, device SSBO1& v_7)
|
2019-09-04 10:26:34 +00:00
|
|
|
{
|
|
|
|
int _37 = int(gl_FragCoord.x);
|
|
|
|
v_7.values1[_37]++;
|
|
|
|
}
|
|
|
|
|
2019-09-20 13:28:46 +00:00
|
|
|
static inline __attribute__((always_inline))
|
|
|
|
void callee(thread float4& gl_FragCoord, device SSBO1& v_7, device SSBO0& v_9)
|
2019-09-04 10:26:34 +00:00
|
|
|
{
|
|
|
|
int _45 = int(gl_FragCoord.x);
|
|
|
|
v_9.values0[_45]++;
|
|
|
|
callee2(gl_FragCoord, v_7);
|
|
|
|
}
|
|
|
|
|
2019-09-20 13:28:46 +00:00
|
|
|
static inline __attribute__((always_inline))
|
|
|
|
void _29()
|
2019-09-04 10:26:34 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2019-09-20 13:28:46 +00:00
|
|
|
static inline __attribute__((always_inline))
|
|
|
|
void _31()
|
2019-09-04 10:26:34 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment 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]])
|
|
|
|
{
|
|
|
|
callee(gl_FragCoord, v_7, v_9);
|
|
|
|
_29();
|
|
|
|
_31();
|
|
|
|
}
|
|
|
|
|