Top Description Fields Constructors Methods
org.lwjgl.opengl

public Class ARBSparseBuffer

extends Object
Class Inheritance
Imports
org.lwjgl.system.*

Native bindings to the ARB_sparse_buffer extension.

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.

Field Summary

Modifier and TypeField and Description
public static final int
GL_SPARSE_BUFFER_PAGE_SIZE_ARB

Accepted by the pname parameter of GetBooleanv, GetDoublev, GetFloatv, GetIntegerv, and GetInteger64v.

public static final int
GL_SPARSE_STORAGE_BIT_ARB

Accepted as part of the flags parameter to BufferStorage.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static native void
glBufferPageCommitmentARB(int target, long
the region offset. Must be an integer multiple of the implementation dependent constant SPARSE_BUFFER_PAGE_SIZE_ARB.
offset
,
long
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.
size
,
boolean
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.
commit
)

Commit and de-commits regions of sparse buffer storage.

public static native void
glNamedBufferPageCommitmentARB(int
the buffer object
buffer
,
long
the region offset. Must be an integer multiple of the implementation dependent constant SPARSE_BUFFER_PAGE_SIZE_ARB.
offset
,
long
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.
size
,
boolean
the commit state
commit
)

Direct-state-access version of BufferPageCommitmentARB.

public static native void
glNamedBufferPageCommitmentEXT(int
the buffer object
buffer
,
long
the region offset. Must be an integer multiple of the implementation dependent constant SPARSE_BUFFER_PAGE_SIZE_ARB.
offset
,
long
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.
size
,
boolean
the commit state
commit
)

Direct-state-access version of BufferPageCommitmentARB.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

GL_SPARSE_BUFFER_PAGE_SIZE_ARBback to summary
public static final int GL_SPARSE_BUFFER_PAGE_SIZE_ARB

Accepted by the pname parameter of GetBooleanv, GetDoublev, GetFloatv, GetIntegerv, and GetInteger64v.

GL_SPARSE_STORAGE_BIT_ARBback to summary
public static final int GL_SPARSE_STORAGE_BIT_ARB

Accepted as part of the flags parameter to BufferStorage.

Constructor Detail

ARBSparseBufferback to summary
protected ARBSparseBuffer()

Method Detail

glBufferPageCommitmentARBback to summary
public static native void glBufferPageCommitmentARB(int target, long offset, long size, boolean commit)

Commit and de-commits regions of sparse buffer storage.

Parameters
target:int

buffer object target. One of:

ARRAY_BUFFERELEMENT_ARRAY_BUFFERPIXEL_PACK_BUFFERPIXEL_UNPACK_BUFFER
TRANSFORM_FEEDBACK_BUFFERUNIFORM_BUFFERTEXTURE_BUFFERCOPY_READ_BUFFER
COPY_WRITE_BUFFERDRAW_INDIRECT_BUFFERATOMIC_COUNTER_BUFFERDISPATCH_INDIRECT_BUFFER
SHADER_STORAGE_BUFFERPARAMETER_BUFFER_ARB
offset:long

the region offset. Must be an integer multiple of the implementation dependent constant SPARSE_BUFFER_PAGE_SIZE_ARB.

size:long

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:boolean

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.

glNamedBufferPageCommitmentARBback to summary
public static native void glNamedBufferPageCommitmentARB(int buffer, long offset, long size, boolean commit)

Direct-state-access version of BufferPageCommitmentARB.

Parameters
buffer:int

the buffer object

offset:long

the region offset. Must be an integer multiple of the implementation dependent constant SPARSE_BUFFER_PAGE_SIZE_ARB.

size:long

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:boolean

the commit state

glNamedBufferPageCommitmentEXTback to summary
public static native void glNamedBufferPageCommitmentEXT(int buffer, long offset, long size, boolean commit)

Direct-state-access version of BufferPageCommitmentARB.

Parameters
buffer:int

the buffer object

offset:long

the region offset. Must be an integer multiple of the implementation dependent constant SPARSE_BUFFER_PAGE_SIZE_ARB.

size:long

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:boolean

the commit state