☰
Debian Codegraph
@
1.9.25+dfsg3-3
/
/
third_party
/
spirv-cross
/
shaders
/
frag
/
struct-type-unrelated-alias.frag
☽
☼
third_party/spirv-cross/shaders/frag/struct-type-unrelated-alias.frag
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
layout(location = 0) out float FragColor;
4
5
struct T
6
{
7
float a;
8
};
9
10
void main()
11
{
12
T foo;
13
struct T { float b; };
14
T bar;
15
16
foo.a = 10.0;
17
bar.b = 20.0;
18
FragColor = foo.a + bar.b;
19
}