glFlushMappedBufferRange
glFlushMappedBufferRange is an OpenGL API function used to flush a previously mapped range of a buffer object's data store back to the graphics pipeline. It ensures that writes performed by the client into a mapped buffer are made visible to the GL driver and to subsequent GL operations. The function is part of the buffer-mapping feature set introduced by the ARB_map_buffer_range extension and is commonly used with glMapBufferRange and persistent mappings.
Syntax: void glFlushMappedBufferRange(GLenum target, GLintptr offset, GLsizeiptr length);
- target: the binding target of the buffer object whose data store is mapped (for example GL_ARRAY_BUFFER
- offset: the starting byte offset into the buffer’s data store for the range to flush.
- length: the size, in bytes, of the range to flush.
Behavior: The function flushes the specified range of the mapped memory so future GL operations see the
Usage notes: Use glFlushMappedBufferRange when writing to a buffer via a mapped pointer obtained from glMapBufferRange