Debian Codegraph @

third_party/spirv-cross/reference/shaders-msl-no-opt/asm/frag/pixel-interlock-control-flow.msl2.asm.frag

raw
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 _12
14 {
15 uint _m0[1];
16 };
17
18 struct SSBO0
19 {
20 uint values0[1];
21 };
22
23 static inline __attribute__((always_inline))
24 void callee2(thread float4& gl_FragCoord, device SSBO1& v_7)
25 {
26 int _44 = int(gl_FragCoord.x);
27 v_7.values1[_44]++;
28 }
29
30 static inline __attribute__((always_inline))
31 void 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
41 static inline __attribute__((always_inline))
42 void _35(thread float4& gl_FragCoord, device _12& v_13)
43 {
44 v_13._m0[int(gl_FragCoord.x)] = 4u;
45 }
46
47 fragment 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