glFlushMappedBufferRange

glFlushMappedBufferRange: man4/glFlushMappedBufferRange.xml

glFlushMappedBufferRange indicates that modifications have been made to a range of a mapped buffer object. The buffer object must previously have been mapped with the GL_MAP_FLUSH_EXPLICIT_BIT flag. offset and length indicate the modified subrange of the mapping, in basic machine units. The specified subrange to flush is relative to the start of the currently mapped range of the buffer. These commands may be called multiple times to indicate distinct subranges of the mapping which require flushing. If a buffer range is mapped with both GL_MAP_PERSISTENT_BIT and GL_MAP_FLUSH_EXPLICIT_BIT set, then these commands may be called to ensure that data written by the client into the flushed region becomes visible to the server. Data written to a coherent store will always become visible to the server after an unspecified period of time.

The GL_DISPATCH_INDIRECT_BUFFER and GL_SHADER_STORAGE_BUFFER targets are available only if the GL version is 4.3 or greater. The GL_QUERY_BUFFER target is available only if the GL version is 4.4 or greater.

@OpenGL_Version(OGLIntroducedIn.V3P0)
@OpenGL_Extension("GL_ARB_map_buffer_range")
fn_glFlushMappedBufferRange glFlushMappedBufferRange;

See Also

glMapBufferRange, glMapBuffer, glUnmapBuffer

Meta