Partial implementation of atomic counters.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@27701 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
John Kessenich 2014-08-12 03:52:51 +00:00
parent cc7f4eb5a0
commit bedb1bc2db
12 changed files with 165 additions and 46 deletions

View file

@ -740,6 +740,18 @@ void TBuiltIns::initialize(int version, EProfile profile)
"\n");
}
//
// Atomic counter functions.
//
if (profile != EEsProfile && version >= 420) {
commonBuiltins.append(
"uint atomicCounterIncrement(atomic_uint x);"
"uint atomicCounterDecrement(atomic_uint x);"
"uint atomicCounter(atomic_uint x);"
"\n");
}
//============================================================================
//
// Prototypes for built-in functions seen by vertex shaders only.