Debian Codegraph @

third_party/spirv-cross/reference/shaders-hlsl-no-opt/frag/pixel-interlock-simple-callstack.sm51.fxconly.frag

raw
1 RasterizerOrderedByteAddressBuffer _14 : register(u1, space0);
2 RasterizerOrderedByteAddressBuffer _35 : register(u0, space0);
3
4 static float4 gl_FragCoord;
5 struct SPIRV_Cross_Input
6 {
7 float4 gl_FragCoord : SV_Position;
8 };
9
10 void callee2()
11 {
12 int _25 = int(gl_FragCoord.x);
13 _14.Store(_25 * 4 + 0, _14.Load(_25 * 4 + 0) + 1u);
14 }
15
16 void callee()
17 {
18 int _38 = int(gl_FragCoord.x);
19 _35.Store(_38 * 4 + 0, _35.Load(_38 * 4 + 0) + 1u);
20 callee2();
21 }
22
23 void frag_main()
24 {
25 callee();
26 }
27
28 void main(SPIRV_Cross_Input stage_input)
29 {
30 gl_FragCoord = stage_input.gl_FragCoord;
31 gl_FragCoord.w = 1.0 / gl_FragCoord.w;
32 frag_main();
33 }