SPV: Turn on atomic-storage functionality for SPIR-V.
This is used by OpenGL, but not Vulkan. Includes: - atomicCounter, atomicIncrement, atomicCounterDecrement - atomic_uint layout-offset checking - AtomicStorage capability
This commit is contained in:
parent
5e69ec683d
commit
2d0cc786f3
6 changed files with 152 additions and 203 deletions
|
|
@ -1,4 +1,4 @@
|
|||
#version 310 es
|
||||
#version 450
|
||||
|
||||
|
||||
|
||||
|
|
@ -22,6 +22,7 @@ void main()
|
|||
func(counter);
|
||||
uint val = atomicCounter(countArr[2]);
|
||||
atomicCounterDecrement(counter);
|
||||
atomicCounterIncrement(counter);
|
||||
}
|
||||
|
||||
shared int atomi;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue