Only apply volatile semantics to atomics when using Vulkan Memory Model
This commit is contained in:
8
Test/spv.volatileAtomic.comp
Normal file
8
Test/spv.volatileAtomic.comp
Normal file
@@ -0,0 +1,8 @@
|
||||
#version 450 core
|
||||
|
||||
layout(set=0, binding=3) volatile buffer D { uint d[]; } d;
|
||||
|
||||
void main()
|
||||
{
|
||||
atomicExchange(d.d[0], 0);
|
||||
}
|
||||
Reference in New Issue
Block a user