Debian Codegraph @

third_party/spirv-cross/reference/shaders-no-opt/asm/frag/pixel-interlock-callstack.asm.frag

raw
1 #version 450
2 #extension GL_ARB_fragment_shader_interlock : require
3 layout(pixel_interlock_ordered) in;
4
5 layout(binding = 1, std430) buffer SSBO1
6 {
7 uint values1[];
8 } _7;
9
10 layout(binding = 0, std430) buffer SSBO0
11 {
12 uint values0[];
13 } _9;
14
15 void callee2()
16 {
17 int _31 = int(gl_FragCoord.x);
18 _7.values1[_31]++;
19 }
20
21 void callee()
22 {
23 int _39 = int(gl_FragCoord.x);
24 _9.values0[_39]++;
25 callee2();
26 }
27
28 void spvMainInterlockedBody()
29 {
30 callee();
31 }
32
33 void main()
34 {
35 // Interlocks were used in a way not compatible with GLSL, this is very slow.
36 beginInvocationInterlockARB();
37 spvMainInterlockedBody();
38 endInvocationInterlockARB();
39 }