Light | Dark

imageAtomicAnd

Name

imageAtomicAnd — atomically compute the logical AND of a value with an existing value in memory, store that value and return the original value

Declaration

uint imageAtomicAnd( gimage2D image,
  ivec2 P,
  uint data);
 
uint imageAtomicAnd( gimage3D image,
  ivec3 P,
  uint data);
 
uint imageAtomicAnd( gimageCube image,
  ivec3 P,
  uint data);
 
uint imageAtomicAnd( gimageBuffer image,
  int P,
  uint data);
 
uint imageAtomicAnd( gimage2DArray image,
  ivec3 P,
  uint data);
 
uint imageAtomicAnd( gimageCubeArray image,
  ivec3 P,
  uint data);
 
int imageAtomicAnd( gimage2D image,
  ivec2 P,
  int data);
 
int imageAtomicAnd( gimage3D image,
  ivec3 P,
  int data);
 
int imageAtomicAnd( gimageCube image,
  ivec3 P,
  int data);
 
int imageAtomicAnd( gimageBuffer image,
  int P,
  int data);
 
int imageAtomicAnd( gimage2DArray image,
  ivec3 P,
  int data);
 
int imageAtomicAnd( 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 logically AND into the image.

Description

imageAtomicAnd atomically computes a new value by logically ANDing 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
imageAtomicAnd - - -
Think you can improve this page? Edit this page on GitHub.