Debian Codegraph @

third_party/spirv-cross/shaders-hlsl/comp/access-chain-load-composite.comp

raw
1 #version 450
2 layout(local_size_x = 1) in;
3
4 struct Baz
5 {
6 float c;
7 };
8
9 struct Bar
10 {
11 float d[2][4];
12 Baz baz[2];
13 };
14
15 struct Foo
16 {
17 mat2 a;
18 vec2 b;
19 Bar c[5];
20 };
21
22 layout(row_major, std430, set = 0, binding = 0) buffer SSBO
23 {
24 Foo foo;
25 Foo foo2;
26 };
27
28 void main()
29 {
30 Foo f = foo;
31 f.a += 1.0;
32 f.b += 2.0;
33 f.c[3].d[1][1] += 5.0;
34 foo2 = f;
35 }