Name
imageAtomicMax — atomically compute the maximum of a value with an existing value in memory, store that value and return the original value
Declaration
uint imageAtomicMax(
|
gimage2D image, |
| |
ivec2 P, |
| |
uint data); |
uint imageAtomicMax(
|
gimage3D image, |
| |
ivec3 P, |
| |
uint data); |
uint imageAtomicMax(
|
gimageCube image, |
| |
ivec3 P, |
| |
uint data); |
uint imageAtomicMax(
|
gimageBuffer image, |
| |
int P, |
| |
uint data); |
uint imageAtomicMax(
|
gimage2DArray image, |
| |
ivec3 P, |
| |
uint data); |
uint imageAtomicMax(
|
gimageCubeArray image, |
| |
ivec3 P, |
| |
uint data); |
int imageAtomicMax(
|
gimage2D image, |
| |
ivec2 P, |
| |
int data); |
int imageAtomicMax(
|
gimage3D image, |
| |
ivec3 P, |
| |
int data); |
int imageAtomicMax(
|
gimageCube image, |
| |
ivec3 P, |
| |
int data); |
int imageAtomicMax(
|
gimageBuffer image, |
| |
int P, |
| |
int data); |
int imageAtomicMax(
|
gimage2DArray image, |
| |
ivec3 P, |
| |
int data); |
int imageAtomicMax(
|
gimageCubeArray image, |
| |
ivec3 P, |
| |
int data); |
Parameters
-
image
-
Specify the image unit into which to store data.
-
P
-
Specify the coordinate at which to store the data.
-
data
-
Specifies the data of which to take the maximum with that stored in the image.
Description
imageAtomicMax atomically computes a new value by finding the maximum of the value of data
and the contents of the texel at coordinate P in the
image bound to uint image, stores that value into the image and returns the original value.
Copyright
Copyright © 2011-2022 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.
https://opencontent.org/openpub/.