Implement atomic counter offset semantics.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@27760 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
@@ -36,4 +36,13 @@ void opac()
|
||||
|
||||
in atomic_uint acin; // ERROR
|
||||
atomic_uint acg; // ERROR
|
||||
|
||||
uniform atomic_uint;
|
||||
uniform atomic_uint aNoBind; // ERROR, no binding
|
||||
layout(binding=0, offset=32) uniform atomic_uint aOffset;
|
||||
layout(binding=0, offset=4) uniform atomic_uint;
|
||||
layout(binding=0) uniform atomic_uint bar3; // offset is 4
|
||||
layout(binding=0) uniform atomic_uint ac[3]; // offset = 8
|
||||
layout(binding=0) uniform atomic_uint ad; // offset = 20
|
||||
layout(offset=8) uniform atomic_uint bar4; // ERROR, no binding
|
||||
layout(binding = 0, offset = 12) uniform atomic_uint overlap; // ERROR, overlapping offsets
|
||||
layout(binding = 20) uniform atomic_uint bigBind; // ERROR, binding too big
|
||||
|
||||
Reference in New Issue
Block a user