Debian Codegraph @

third_party/spirv-cross/reference/shaders-no-opt/asm/frag/pixel-interlock-control-flow.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 = 2, std430) buffer _12_13
11 {
12 uint _m0[];
13 } _13;
14
15 layout(binding = 0, std430) buffer SSBO0
16 {
17 uint values0[];
18 } _9;
19
20 void callee2()
21 {
22 int _44 = int(gl_FragCoord.x);
23 _7.values1[_44]++;
24 }
25
26 void callee()
27 {
28 int _52 = int(gl_FragCoord.x);
29 _9.values0[_52]++;
30 callee2();
31 if (true)
32 {
33 }
34 }
35
36 void _35()
37 {
38 _13._m0[int(gl_FragCoord.x)] = 4u;
39 }
40
41 void spvMainInterlockedBody()
42 {
43 callee();
44 _35();
45 }
46
47 void main()
48 {
49 // Interlocks were used in a way not compatible with GLSL, this is very slow.
50 beginInvocationInterlockARB();
51 spvMainInterlockedBody();
52 endInvocationInterlockARB();
53 }