public class ARBSparseBuffer
extends java.lang.Object
This extension adds to GL a mechanism to decouple the virtual and physical storage requirements of textures and allows an application to create partially populated textures that would over-subscribe available graphics memory if made fully resident. This extension provides like functionality for buffer objects, allowing applications to manage buffer object storage in a similar manner.
Requires OpenGL 1.5 or ARB_vertex_buffer_object.
| Modifier and Type | Field and Description |
|---|---|
static int |
GL_SPARSE_BUFFER_PAGE_SIZE_ARB
Accepted by the
pname parameter of GetBooleanv, GetDoublev, GetFloatv, GetIntegerv, and GetInteger64v. |
static int |
GL_SPARSE_STORAGE_BIT_ARB
Accepted as part of the
flags parameter to BufferStorage. |
| Modifier and Type | Method and Description |
|---|---|
static void |
glBufferPageCommitmentARB(int target,
long offset,
long size,
boolean commit)
Commit and de-commits regions of sparse buffer storage.
|
static void |
glNamedBufferPageCommitmentARB(int buffer,
long offset,
long size,
boolean commit)
Direct-state-access version of
BufferPageCommitmentARB. |
static void |
glNamedBufferPageCommitmentEXT(int buffer,
long offset,
long size,
boolean commit)
Direct-state-access version of
BufferPageCommitmentARB. |
public static final int GL_SPARSE_STORAGE_BIT_ARB
flags parameter to BufferStorage.public static final int GL_SPARSE_BUFFER_PAGE_SIZE_ARB
pname parameter of GetBooleanv, GetDoublev, GetFloatv, GetIntegerv, and GetInteger64v.public static void glBufferPageCommitmentARB(int target,
long offset,
long size,
boolean commit)
target - buffer object target. One of:offset - the region offset. Must be an integer multiple of the implementation dependent constant SPARSE_BUFFER_PAGE_SIZE_ARB.size - the data size. must either be a multiple of SPARSE_BUFFER_PAGE_SIZE_ARB, or extend to the end of the buffer's data store.commit - If true, then pages contained in the specified range become committed and become physically backed. If false, then physical storage associated with
the data store in the specified region may be freed and those pages become uncommitted. Newly committed pages have undefined content. However,
redundantly committing pages does not alter their content.public static void glNamedBufferPageCommitmentEXT(int buffer,
long offset,
long size,
boolean commit)
BufferPageCommitmentARB.buffer - the buffer objectoffset - the region offset. Must be an integer multiple of the implementation dependent constant SPARSE_BUFFER_PAGE_SIZE_ARB.size - the data size. must either be a multiple of SPARSE_BUFFER_PAGE_SIZE_ARB, or extend to the end of the buffer's data store.commit - the commit statepublic static void glNamedBufferPageCommitmentARB(int buffer,
long offset,
long size,
boolean commit)
BufferPageCommitmentARB.buffer - the buffer objectoffset - the region offset. Must be an integer multiple of the implementation dependent constant SPARSE_BUFFER_PAGE_SIZE_ARB.size - the data size. must either be a multiple of SPARSE_BUFFER_PAGE_SIZE_ARB, or extend to the end of the buffer's data store.commit - the commit stateCopyright LWJGL. All Rights Reserved. License terms.