☰
Debian Codegraph
@
1.9.25+dfsg3-3
/
/
third_party
/
spirv-cross
/
shaders-msl
/
comp
/
complex-composite-constant-array.comp
☽
☼
third_party/spirv-cross/shaders-msl/comp/complex-composite-constant-array.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
layout(std430, set = 0, binding = 0) buffer SSBO
4
{
5
mat4 a;
6
uint index;
7
};
8
9
const mat4 as[] = mat4[](mat4(1.0), mat4(2.0));
10
11
void write_global()
12
{
13
a = as[index];
14
}
15
16
void main()
17
{
18
write_global();
19
}