glMemoryBarrier

defines a barrier ordering memory transactions

Signature

glMemoryBarrier( GLbitfield ( barriers ) )-> void
glMemoryBarrier( barriers )

Parameters

VariablesDescription
barriers
Specifies the barriers to insert. Must be a bitwise combination of GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT , GL_ELEMENT_ARRAY_BARRIER_BIT , GL_UNIFORM_BARRIER_BIT , GL_TEXTURE_FETCH_BARRIER_BIT , GL_SHADER_IMAGE_ACCESS_BARRIER_BIT , GL_COMMAND_BARRIER_BIT , GL_PIXEL_BUFFER_BARRIER_BIT , GL_TEXTURE_UPDATE_BARRIER_BIT , GL_BUFFER_UPDATE_BARRIER_BIT , GL_FRAMEBUFFER_BARRIER_BIT , GL_TRANSFORM_FEEDBACK_BARRIER_BIT , GL_ATOMIC_COUNTER_BARRIER_BIT , or GL_SHADER_STORAGE_BARRIER_BIT . If the special value GL_ALL_BARRIER_BITS is specified, all supported barriers will be inserted.