☰
Debian Codegraph
@
1.9.25+dfsg3-3
/
/
third_party
/
spirv-cross
/
shaders-msl
/
comp
/
struct-nested.comp
☽
☼
third_party/spirv-cross/shaders-msl/comp/struct-nested.comp
code
plain
raw
Apache-2.0
2012-2021, The Android Open Source Project; 2015-2021, Google LLC; 2017, Romain Guy
debian/copyright
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
}