Debian Codegraph @

third_party/spirv-cross/reference/shaders-msl-no-opt/asm/frag/pixel-interlock-callstack.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 SSBO0
14 {
15 uint values0[1];
16 };
17
18 static inline __attribute__((always_inline))
19 void callee2(thread float4& gl_FragCoord, device SSBO1& v_7)
20 {
21 int _31 = int(gl_FragCoord.x);
22 v_7.values1[_31]++;
23 }
24
25 static inline __attribute__((always_inline))
26 void callee(thread float4& gl_FragCoord, device SSBO1& v_7, device SSBO0& v_9)
27 {
28 int _39 = int(gl_FragCoord.x);
29 v_9.values0[_39]++;
30 callee2(gl_FragCoord, v_7);
31 }
32
33 fragment void main0(device SSBO1& v_7 [[buffer(0), raster_order_group(0)]], device SSBO0& v_9 [[buffer(1)]], float4 gl_FragCoord [[position]])
34 {
35 callee(gl_FragCoord, v_7, v_9);
36 }
37