SPIRV-Cross/shaders-msl/comp/copy-array-of-arrays.comp

16 lines
330 B
Plaintext
Raw Normal View History

2018-09-11 10:58:03 +00:00
#version 450
layout(local_size_x = 1) in;
layout(set = 0, binding = 0, std430) buffer BUF
{
int a;
} o;
void main()
{
const float a[2][2][2] = float[][][](float[][](float[](1.0, 2.0), float[](3.0, 4.0)), float[][](float[](1.0, 2.0), float[](3.0, 4.0)));
float b[2][2][2] = a;
float c[2][2][2] = b;
o.a = int(c[1][1][1]);
}