Finish virtually all of the remaining atomic counter functionality. Still need offset collision detection.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@27712 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
parent
3dd035b68b
commit
265f5fb80e
16 changed files with 191 additions and 37 deletions
|
|
@ -19,3 +19,21 @@ void main()
|
|||
uint val = atomicCounter(counter);
|
||||
atomicCounterDecrement(counter);
|
||||
}
|
||||
|
||||
layout(binding = 1, offset = 3) uniform atomic_uint countArr[4];
|
||||
uniform int i;
|
||||
|
||||
void opac()
|
||||
{
|
||||
counter + counter; // ERROR
|
||||
-counter; // ERROR
|
||||
int a[3];
|
||||
a[counter]; // ERROR
|
||||
countArr[2];
|
||||
countArr[i];
|
||||
counter = 4; // ERROR
|
||||
}
|
||||
|
||||
in atomic_uint acin; // ERROR
|
||||
atomic_uint acg; // ERROR
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue