glGetBufferPointerv

glGetBufferPointerv: man4/glGetBufferPointerv.xml

glGetBufferPointerv and glGetNamedBufferPointerv return the buffer pointer pname, which must be GL_BUFFER_MAP_POINTER. The single buffer map pointer is returned in params. A null pointer is returned if the buffer object's data store is not currently mapped; or if the requesting context did not map the buffer object's data store, and the implementation is unable to support mappings on multiple clients.

If an error is generated, no change is made to the contents of params. The initial value for the pointer is null. The GL_ATOMIC_COUNTER_BUFFER target is available only if the GL version is 4.2 or greater. 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.V1P5)
fn_glGetBufferPointerv glGetBufferPointerv;

See Also

glBindBuffer, glMapBuffer

Meta