db55d474f9
Need to consider that complex composite arrays may be used in leaf functions, and avoid the MSL library link fix unless everything is nicely inlined.
20 lines
214 B
Plaintext
20 lines
214 B
Plaintext
#version 450
|
|
|
|
layout(std430, set = 0, binding = 0) buffer SSBO
|
|
{
|
|
mat4 a;
|
|
uint index;
|
|
};
|
|
|
|
const mat4 as[] = mat4[](mat4(1.0), mat4(2.0));
|
|
|
|
void write_global()
|
|
{
|
|
a = as[index];
|
|
}
|
|
|
|
void main()
|
|
{
|
|
write_global();
|
|
}
|