☰
Debian Codegraph
@
1.9.25+dfsg3-3
/
/
third_party
/
spirv-cross
/
shaders-msl-no-opt
/
frag
/
ubo-array-multiple-structs-access-chain.frag
☽
☼
third_party/spirv-cross/shaders-msl-no-opt/frag/ubo-array-multiple-structs-access-chain.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
struct Foo
4
{
5
vec4 v;
6
};
7
8
layout(set = 0, binding = 0) uniform UBO
9
{
10
Foo foo;
11
} ubos[2];
12
13
layout(location = 0) out vec4 FragColor;
14
15
void main()
16
{
17
FragColor = ubos[1].foo.v;
18
}