Light | Dark

imageAtomicExchange

Name

imageAtomicExchange — atomically store supplied data into memory and return the original value from memory

Declaration

uint imageAtomicExchange( gimage2D image,
  ivec2 P,
  uint data);
 
uint imageAtomicExchange( gimage3D image,
  ivec3 P,
  uint data);
 
uint imageAtomicExchange( gimageCube image,
  ivec3 P,
  uint data);
 
uint imageAtomicExchange( gimageBuffer image,
  int P,
  uint data);
 
uint imageAtomicExchange( gimage2DArray image,
  ivec3 P,
  uint data);
 
uint imageAtomicExchange( gimageCubeArray image,
  ivec3 P,
  uint data);
 
int imageAtomicExchange( gimage2D image,
  ivec2 P,
  int data);
 
int imageAtomicExchange( gimage3D image,
  ivec3 P,
  int data);
 
int imageAtomicExchange( gimageCube image,
  ivec3 P,
  int data);
 
int imageAtomicExchange( gimageBuffer image,
  int P,
  int data);
 
int imageAtomicExchange( gimage2DArray image,
  ivec3 P,
  int data);
 
int imageAtomicExchange( 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 to exchange with that stored in the image.

Description

imageAtomicExchange atomically stores the value of data into texel at coordinate P in the image bound to uint image, and returns the original value of the texel.

Version Support

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