Fix a parser error of GL_KHR_memory_scope_semantics
When 2DMS or 2DMSArray is used, IMAGE_PARAMS will take an additional paramter to represent sample number. The semantics check should get the correct semantics values, taking this case into account.
This commit is contained in:
@@ -20,6 +20,7 @@ shared uint64_t atomu64;
|
||||
shared int64_t atomi64;
|
||||
layout (binding = 8) volatile buffer BufferL { uint x; } bufferl;
|
||||
layout (binding = 9) buffer BufferM { volatile uint x; } bufferm;
|
||||
layout(binding = 10, r32i) volatile coherent uniform iimage2DMS imageMS;
|
||||
|
||||
|
||||
void main()
|
||||
@@ -66,5 +67,7 @@ void main()
|
||||
imageAtomicAdd(imagei, ivec2(0,0), 3);
|
||||
atomicAdd(bufferu.x, 4u, gl_ScopeDevice, 0, 0);
|
||||
atomicAdd(bufferu.x, 5u, gl_ScopeDevice, 0, gl_SemanticsVolatile);
|
||||
|
||||
imageAtomicStore(imageMS, ivec2(0,0), 1, 4, gl_ScopeDevice, gl_StorageSemanticsBuffer, gl_SemanticsRelease);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user