Light | Dark

imageAtomicMax

Name

imageAtomicMax — atomically compute the minimum of a value with an existing value in memory, store that value and return the original value

Declaration

uint imageAtomicMax( gimage1D image,
int P,
uint data);
uint imageAtomicMax( gimage2D image,
ivec2 P,
uint data);
uint imageAtomicMax( gimage3D image,
ivec3 P,
uint data);
uint imageAtomicMax( gimage2DRect image,
ivec2 P,
uint data);
uint imageAtomicMax( gimageCube image,
ivec3 P,
uint data);
uint imageAtomicMax( gbufferImage image,
int P,
uint data);
uint imageAtomicMax( gimage1DArray image,
ivec2 P,
uint data);
uint imageAtomicMax( gimage2DArray image,
ivec3 P,
uint data);
uint imageAtomicMax( gimageCubeArray image,
ivec3 P,
uint data);
uint imageAtomicMax( gimage2DMS image,
ivec2 P,
int sample,
uint data);
uint imageAtomicMax( gimage2DMSArray image,
ivec3 P,
int sample,
uint data);
int imageAtomicMax( gimage1D image,
int P,
int data);
int imageAtomicMax( gimage2D image,
ivec2 P,
int data);
int imageAtomicMax( gimage3D image,
ivec3 P,
int data);
int imageAtomicMax( gimage2DRect image,
ivec2 P,
int data);
int imageAtomicMax( gimageCube image,
ivec3 P,
int data);
int imageAtomicMax( gbufferImage image,
int P,
int data);
int imageAtomicMax( gimage1DArray image,
ivec2 P,
int data);
int imageAtomicMax( gimage2DArray image,
ivec3 P,
int data);
int imageAtomicMax( gimageCubeArray image,
ivec3 P,
int data);
int imageAtomicMax( gimage2DMS image,
ivec2 P,
int sample,
int data);
int imageAtomicMax( gimage2DMSArray image,
ivec3 P,
int sample,
int data);

Parameters

image

Specify the image unit into which to store data.

P

Specify the coordinate at which to store the data.

sample

When present, specifies the sample within the image to store into.

data

Specifies the data of which to take the minimum 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 and sample in the image bound to uint image, stores that value into the image and returns the original value.

Version Support

OpenGL ES Shading Language Version
Function Name 1.00 3.00 3.10
imageAtomicMax - -
Think you can improve this page? Edit this page on GitHub.