Debian Codegraph @

third_party/spirv-cross/reference/shaders-no-opt/asm/frag/pixel-interlock-split-functions.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 _37 = int(gl_FragCoord.x);
18 _7.values1[_37]++;
19 }
20
21 void callee()
22 {
23 int _45 = int(gl_FragCoord.x);
24 _9.values0[_45]++;
25 callee2();
26 }
27
28 void _29()
29 {
30 }
31
32 void _31()
33 {
34 }
35
36 void spvMainInterlockedBody()
37 {
38 callee();
39 _29();
40 _31();
41 }
42
43 void main()
44 {
45 // Interlocks were used in a way not compatible with GLSL, this is very slow.
46 beginInvocationInterlockARB();
47 spvMainInterlockedBody();
48 endInvocationInterlockARB();
49 }