mirror of https://github.com/xemu-project/xemu.git
27 lines
389 B
Plaintext
27 lines
389 B
Plaintext
#version 450 core
|
|
|
|
layout (local_size_x = 64, local_size_y = 1, local_size_z = 1) in;
|
|
|
|
layout(set = 0, binding = 0, std430) buffer foo {
|
|
int x[4];
|
|
} f;
|
|
|
|
struct Bar {
|
|
uint x;
|
|
uint y;
|
|
uint z[2];
|
|
};
|
|
|
|
layout(set = 0, binding = 1, std430) buffer foo2 {
|
|
uvec4 a;
|
|
Bar b;
|
|
uint c;
|
|
};
|
|
|
|
void main() {
|
|
f.x;
|
|
int x[4] = {0,0,0,0};
|
|
Bar new_bar;
|
|
b = new_bar;
|
|
}
|