GL_EXT_buffer_storage#

Valid APIs#

OpenGL ES 3.1+

Description#

This extension applies the immutable texture storage concept to buffer objects. If an implementation is aware of a buffer’s immutability, it may be able to make certain assumptions or apply particular optimizations in order to increase performance or reliability.

Furthermore, this extension allows applications to pass additional information about a requested allocation to the implementation which it may use to select memory heaps, caching behaviour or allocation strategies.

Example#

//generate texture buffer object
glGenBuffers(1, &tbo);
//bind texture buffer object
glBindBuffer(GL_TEXTURE_BUFFER, tbo);
//allocate immutable storage to texture buffer object
glBufferStorageEXT(GL_TEXTURE_BUFFER, sizeof(data), &data, GL_MAP_WRITE_BIT_EXT | GL_DYNAMIC_STORAGE_BIT_EXT );
//rebind the default texture buffer object
glBindBuffer(GL_TEXTURE_BUFFER, 0);