• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 _12
14{
15    uint _m0[1];
16};
17
18struct SSBO0
19{
20    uint values0[1];
21};
22
23static inline __attribute__((always_inline))
24void callee2(thread float4& gl_FragCoord, device SSBO1& v_7)
25{
26    int _44 = int(gl_FragCoord.x);
27    v_7.values1[_44]++;
28}
29
30static inline __attribute__((always_inline))
31void callee(thread float4& gl_FragCoord, device SSBO1& v_7, device SSBO0& v_9)
32{
33    int _52 = int(gl_FragCoord.x);
34    v_9.values0[_52]++;
35    callee2(gl_FragCoord, v_7);
36    if (true)
37    {
38    }
39}
40
41static inline __attribute__((always_inline))
42void _35(thread float4& gl_FragCoord, device _12& v_13)
43{
44    v_13._m0[int(gl_FragCoord.x)] = 4u;
45}
46
47fragment void main0(device SSBO1& v_7 [[buffer(0), raster_order_group(0)]], device _12& v_13 [[buffer(1)]], device SSBO0& v_9 [[buffer(2), raster_order_group(0)]], float4 gl_FragCoord [[position]])
48{
49    callee(gl_FragCoord, v_7, v_9);
50    _35(gl_FragCoord, v_13);
51}
52
53