Debian Codegraph @

third_party/spirv-cross/shaders-msl/comp/struct-nested.comp

raw
1 #version 450
2
3 struct s1
4 {
5 int a;
6 };
7
8 struct s2
9 {
10 s1 b;
11 };
12
13 layout(std430, binding = 1) buffer dstbuffer{ s2 test[]; };
14 layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
15 void main()
16 {
17 s2 testVal;
18 testVal.b.a = 0;
19 test[0] = testVal;
20 }