Revert "Atomic memory function can only be used for shader storage block member or shared variable."

This commit is contained in:
Greg Fischer
2021-07-08 13:10:58 -06:00
committed by GitHub
parent 9e707294f1
commit 263e50f6aa
4 changed files with 0 additions and 113 deletions

View File

@@ -1,19 +0,0 @@
#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);
}