Add missing capability when QueueFamily scope is used
Also, if this capability is added and the memory model is not otherwise enabled by pragma, enable it as part of postprocessing.
This commit is contained in:
parent
36df92e4a0
commit
bfd84a39f2
5 changed files with 65 additions and 0 deletions
10
Test/spv.queueFamilyScope.comp
Normal file
10
Test/spv.queueFamilyScope.comp
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#version 450
|
||||
#extension GL_KHR_memory_scope_semantics : require
|
||||
|
||||
layout (binding = 0) buffer Buffer { uint a; } A;
|
||||
|
||||
void main()
|
||||
{
|
||||
atomicLoad(A.a, gl_ScopeQueueFamily, gl_StorageSemanticsBuffer, gl_SemanticsAcquire);
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue