Light | Dark

imageAtomicAdd

Name

imageAtomicAdd — atomically add a value to an existing value in memory and return the original value

Declaration

uint imageAtomicAdd( gimage2D image,
  ivec2 P,
  uint data);
 
uint imageAtomicAdd( gimage3D image,
  ivec3 P,
  uint data);
 
uint imageAtomicAdd( gimageCube image,
  ivec3 P,
  uint data);
 
uint imageAtomicAdd( gbufferImage image,
  int P,
  uint data);
 
uint imageAtomicAdd( gimage2DArray image,
  ivec3 P,
  uint data);
 
uint imageAtomicAdd( gimageCubeArray image,
  ivec3 P,
  uint data);
 
int imageAtomicAdd( gimage2D image,
  ivec2 P,
  int data);
 
int imageAtomicAdd( gimage3D image,
  ivec3 P,
  int data);
 
int imageAtomicAdd( gimageCube image,
  ivec3 P,
  int data);
 
int imageAtomicAdd( gimageBuffer image,
  int P,
  int data);
 
int imageAtomicAdd( gimage2DArray image,
  ivec3 P,
  int data);
 
int imageAtomicAdd( gimageCubeArray image,
  ivec3 P,
  int data);
 

Parameters

image

Specify the image unit into which to add data.

P

Specify the coordinate at which to add the data.

data

Specifies the data to add into the image.

Description

imageAtomicAdd atomically computes a new value by adding the value of data to 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.

Version Support

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