Hi there,

These days I played with OpenGL Compute Shaders and atomic operations. Unfortunately, the GLSL compiler keeps complaining about my use of the function atomicCompSwap.
It claims "0(63) : error C1115: unable to find compatible overloaded function "atomicCompSwap(uint, uint, uint)"".

Code :
bool getMutex(inout uint mutex) {
	if (atomicCompSwap(mutex, uint(0), threadId) == threadId) {
		return true;
	} else {
		return false;
	}
}

According to the specs, the argument list is perfectly valid. I also tried the signed version with the same results. May this be a driver bug?

My system specs are:
Windows 7 64bit
Geforce GT 555M
Driver version: 310.90