Only apply volatile semantics to atomics when using Vulkan Memory Model

This commit is contained in:
Jeff Bolz
2019-10-17 11:22:57 -05:00
parent a959deb007
commit 016ddee83a
4 changed files with 50 additions and 1 deletions

View 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);
}