mirror of
https://github.com/RPCS3/glslang.git
synced 2024-11-27 13:10:37 +00:00
cf52f73a0c
Signed-off-by: ZhiqianXia <xzq0528@outlook.com>
19 lines
256 B
Plaintext
19 lines
256 B
Plaintext
#version 320 es
|
|
layout(local_size_x = 1) in;
|
|
|
|
struct structType{
|
|
int y[3];
|
|
};
|
|
|
|
layout(std430) buffer t2 {
|
|
structType f;
|
|
} t;
|
|
|
|
buffer coherent Buffer { int x; };
|
|
int z;
|
|
|
|
void main() {
|
|
atomicAdd(x, 1);
|
|
atomicAdd(t.f.y[1], 1);
|
|
atomicAdd(z, 1);
|
|
} |