Atomically compares supplied data with that in memory and conditionally stores it to memory.
||-||Specify the image unit into which to compare and conditionally store |
||-||Specify the coordinate at which to compare and conditionally store the data.|
||-||When present, specifies the sample within the image to compare and conditionally store into.|
||-||Specifies the value to compare with the content of the image.|
||-||Specifies the value to store in the image if |
imageAtomicCompSwap atomically compares the value of
compare with that of the texel at coordinate
sample (for multisampled forms) in the image bound to uint
image . If the values are equal,
data is stored into the texel, otherwise it is discarded. It returns the original value of the texel regardless of the result of the comparison operation.
Copyright© 2011-2014 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.