GLFLUSHMAPPEDBUFFERR(3G)

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

            .HP u void glFlushMappedBufferRange(GLenum target, 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:
                    <xi:include></xi:include>

            .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. The buffer must previously have been mapped with the GL_MAP_FLUSH_EXPLICIT flag. offset and length indicate the modified subrange of the mapping, in basic units. The specified subrange to flush is relative to the start of the currently mapped range of the buffer. glFlushMappedBufferRange may be called multiple times to indicate distinct subranges of the mapping which require flushing.

                .SH "NOTES"
                    .PP The GL_COPY_READ_BUFFER, GL_COPY_WRITE_BUFFER, GL_PIXEL_PACK_BUFFER,GL_PIXEL_UNPACK_READ_BUFFER, GL_TRANSFORM_FEEDBACK_BUFFER and GL_UNIFORM_BUFFER targets are available only if the GL ES version is 3.0 or greater.
                    .PP The GL_ATOMIC_COUNTER_BUFFER, GL_DISPATCH_INDIRECT_BUFFER, GL_DRAW_INDIRECT_BUFFER and GL_SHADER_STORAGE_BUFFER targets are available only if the GL ES version is 3.1 or greater.
                    .PP The GL_TEXTURE_BUFFER target is available only if the GL ES version is 3.2 or greater.

                .SH "ERRORS"
                    .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 zero is bound to target.
                    .PP GL_INVALID_OPERATION is generated if the buffer bound to target is not mapped, or is mapped without the GL_MAP_FLUSH_EXPLICIT flag.

                .SH "API VERSION SUPPORT"

                    .TS allbox tab(:); l l l l l. T{ glFlushMappedBufferRange T}:T{ T}:T{ T}:T{ T}:T{ T}

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

                .SH "COPYRIGHT"
                    .PP Copyright © 2010-2015 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. http://opencontent.org/openpub/.

COPYRIGHT
Copyright © 2010-2015 Khronos Group