Debian Codegraph @

third_party/spirv-cross/reference/shaders-hlsl-no-opt/asm/frag/pixel-interlock-control-flow.sm51.fxconly.asm.frag

raw
1 RasterizerOrderedByteAddressBuffer _7 : register(u1, space0);
2 RWByteAddressBuffer _13 : register(u2, space0);
3 RasterizerOrderedByteAddressBuffer _9 : register(u0, space0);
4
5 static float4 gl_FragCoord;
6 struct SPIRV_Cross_Input
7 {
8 float4 gl_FragCoord : SV_Position;
9 };
10
11 void callee2()
12 {
13 int _44 = int(gl_FragCoord.x);
14 _7.Store(_44 * 4 + 0, _7.Load(_44 * 4 + 0) + 1u);
15 }
16
17 void callee()
18 {
19 int _52 = int(gl_FragCoord.x);
20 _9.Store(_52 * 4 + 0, _9.Load(_52 * 4 + 0) + 1u);
21 callee2();
22 if (true)
23 {
24 }
25 }
26
27 void _35()
28 {
29 _13.Store(int(gl_FragCoord.x) * 4 + 0, 4u);
30 }
31
32 void frag_main()
33 {
34 callee();
35 _35();
36 }
37
38 void main(SPIRV_Cross_Input stage_input)
39 {
40 gl_FragCoord = stage_input.gl_FragCoord;
41 gl_FragCoord.w = 1.0 / gl_FragCoord.w;
42 frag_main();
43 }