Atomic Operations on Buffers

In addition to the atomic operations that may be performed on images, atomic operations may also be performed on buffer variables. Buffer variables are variables inside interface blocks that have been declared with the buffer keyword. As with images, several built-in functions to perform atomic operations are defined. The atomic operations that may be performed on buffer variables are the same set that may be performed on image variables.

Get OpenGL Programming Guide: The Official Guide to Learning OpenGL, Version 4.3, Eighth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.