GLFLUSHMAPPEDBUFFERR(3G)

    .SH "NAME" glFlushMappedBufferRange, glFlushMappedNamedBufferRange - indicate modifications to a range of a mapped buffer
    .SH "C SPECIFICATION"

            .HP u void glFlushMappedBufferRange(GLenum target, GLintptr offset, GLsizeiptr length);
            .HP u void glFlushMappedNamedBufferRange(GLuint buffer, GLintptr offset, GLsizeiptr length);

    .SH "PARAMETERS"

        .PP target

                    Specifies the target to which the buffer object is bound for glFlushMappedBufferRange, which must be one of the buffer binding targets in the following table:
                    .TS allbox tab(:); lB lB. T{ Buffer Binding Target T}:T{ Purpose T} l l l l l l l l l l l l l l l l l l l l l l l l l l l l. T{ GL_ARRAY_BUFFER T}:T{ Vertex attributes T} T{ GL_ATOMIC_COUNTER_BUFFER T}:T{ Atomic counter storage T} T{ GL_COPY_READ_BUFFER T}:T{ Buffer copy source T} T{ GL_COPY_WRITE_BUFFER T}:T{ Buffer copy destination T} T{ GL_DISPATCH_INDIRECT_BUFFER T}:T{ Indirect compute dispatch commands T} T{ GL_DRAW_INDIRECT_BUFFER T}:T{ Indirect command arguments T} T{ GL_ELEMENT_ARRAY_BUFFER T}:T{ Vertex array indices T} T{ GL_PIXEL_PACK_BUFFER T}:T{ Pixel read target T} T{ GL_PIXEL_UNPACK_BUFFER T}:T{ Texture data source T} T{ GL_QUERY_BUFFER T}:T{ Query result buffer T} T{ GL_SHADER_STORAGE_BUFFER T}:T{ Read-write storage for shaders T} T{ GL_TEXTURE_BUFFER T}:T{ Texture data buffer T} T{ GL_TRANSFORM_FEEDBACK_BUFFER T}:T{ Transform feedback buffer T} T{ GL_UNIFORM_BUFFER T}:T{ Uniform block storage T}

            .RE
            .PP buffer

                        Specifies the name of the buffer object for glFlushMappedNamedBufferRange.

                .RE
                .PP offset

                            Specifies the start of the buffer subrange, in basic machine units.

                    .RE
                    .PP length

                                Specifies the length of the buffer subrange, in basic machine units.

                        .RE

                    .SH "DESCRIPTION"
                        .PP 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.
                        .PP 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.
                        .PP 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.

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

                    .SH "ERRORS"
                        .PP GL_INVALID_ENUM is generated by glFlushMappedBufferRange if target is not one of the buffer binding targets listed above.
                        .PP GL_INVALID_OPERATION is generated by glFlushMappedBufferRange if zero is bound to target.
                        .PP GL_INVALID_OPERATION is generated by glFlushMappedNamedBufferRange if buffer is not the name of an existing buffer object.
                        .PP GL_INVALID_VALUE is generated if offset or length is negative, or if offset + length exceeds the size of the mapping.
                        .PP GL_INVALID_OPERATION is generated if the buffer object is not mapped, or is mapped without the GL_MAP_FLUSH_EXPLICIT_BIT flag.

                    .SH "VERSION SUPPORT"
                        .TS allbox tab(:); lB cB s s s s s s s s s s s lB cB cB cB cB cB cB cB cB cB cB cB cB. T{ T}:T{ OpenGL Version T} T{ Function / Feature Name T}:T{ 2.0 T}:T{ 2.1 T}:T{ 3.0 T}:T{ 3.1 T}:T{ 3.2 T}:T{ 3.3 T}:T{ 4.0 T}:T{ 4.1 T}:T{ 4.2 T}:T{ 4.3 T}:T{ 4.4 T}:T{ 4.5 T} l c c c c c c c c c c c c l c c c c c c c c c c c c. T{ glFlushMappedBufferRange T}:T{ - T}:T{ - T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T} T{ glFlushMappedNamedBufferRange T}:T{ - T}:T{ - T}:T{ - T}:T{ - T}:T{ - T}:T{ - T}:T{ - T}:T{ - T}:T{ - T}:T{ - T}:T{ - T}:T{ ✔ T}

                    .SH "SEE ALSO"
                        .PP glMapBufferRange(), glMapBuffer(), glUnmapBuffer()

                    .SH "COPYRIGHT"
                        .PP Copyright © 2010-2014 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. https://opencontent.org/openpub/.

COPYRIGHT
Copyright © 2010-2014 Khronos Group