Debian Codegraph @

third_party/spirv-cross/reference/shaders-hlsl-no-opt/asm/frag/empty-struct-in-struct.asm.frag

raw
1 struct EmptyStructTest
2 {
3 int empty_struct_member;
4 };
5
6 struct EmptyStruct2Test
7 {
8 EmptyStructTest _m0;
9 };
10
11 static const EmptyStructTest _30 = { 0 };
12 static const EmptyStruct2Test _20 = { { 0 } };
13
14 float GetValue(EmptyStruct2Test self)
15 {
16 return 0.0f;
17 }
18
19 float GetValue_1(EmptyStruct2Test self)
20 {
21 return 0.0f;
22 }
23
24 void frag_main()
25 {
26 EmptyStructTest _25 = { 0 };
27 EmptyStruct2Test _26 = { _25 };
28 EmptyStruct2Test emptyStruct;
29 float value = GetValue(emptyStruct);
30 value = GetValue_1(_26);
31 value = GetValue_1(_20);
32 }
33
34 void main()
35 {
36 frag_main();
37 }