16 lines
330 B
Plaintext
16 lines
330 B
Plaintext
|
#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]);
|
||
|
}
|