Top Description Fields Constructors Methods
org.lwjgl.opengl

public Class AMDSparseTexture

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

Native bindings to the AMD_sparse_texture extension.

Recent advances in application complexity and a desire for higher resolutions have pushed texture sizes up considerably. Often, the amount of physical memory available to a graphics processor is a limiting factor in the performance of texture-heavy applications. Once the available physical memory is exhausted, paging may occur bringing performance down considerably - or worse, the application may fail. Nevertheless, the amount of address space available to the graphics processor has increased to the point where many gigabytes - or even terabytes of address space may be usable even though that amount of physical memory is not present.

This extension allows the separation of the graphics processor's address space (reservation) from the requirement that all textures must be physically backed (commitment). This exposes a limited form of virtualization for textures. Use cases include sparse (or partially resident) textures, texture paging, on-demand and delayed loading of texture assets and application controlled level of detail.

Requires OpenGL 2.0 or ARB_fragment_shader.

Field Summary

Modifier and TypeField and Description
public static final int
GL_MAX_SPARSE_3D_TEXTURE_SIZE_AMD

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

public static final int
GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS

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

public static final int
GL_MAX_SPARSE_TEXTURE_SIZE_AMD

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

public static final int
GL_MIN_LOD_WARNING_AMD

Accepted by the pname parameter of TexParameter{if}{v} and GetTexParameter{if}v.

public static final int
GL_MIN_SPARSE_LEVEL_AMD

Accepted by the pname parameter of GetTexParameter{if}v.

public static final int
GL_TEXTURE_STORAGE_SPARSE_BIT_AMD

Accepted by the flags parameter to TexStorageSparseAMD and TextureStorageSparseAMD.

public static final int
GL_VIRTUAL_PAGE_SIZE_X_AMD

Accepted by the pname parameter to GetInternalformativ.

public static final int
GL_VIRTUAL_PAGE_SIZE_Y_AMD

Accepted by the pname parameter to GetInternalformativ.

public static final int
GL_VIRTUAL_PAGE_SIZE_Z_AMD

Accepted by the pname parameter to GetInternalformativ.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static native void
glTexStorageSparseAMD(int target, int internalFormat, int width, int height, int depth, int layers, int flags)

public static native void
glTextureStorageSparseAMD(int texture, int target, int internalFormat, int width, int height, int depth, int layers, int flags)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

GL_MAX_SPARSE_3D_TEXTURE_SIZE_AMDback to summary
public static final int GL_MAX_SPARSE_3D_TEXTURE_SIZE_AMD

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

GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERSback to summary
public static final int GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS

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

GL_MAX_SPARSE_TEXTURE_SIZE_AMDback to summary
public static final int GL_MAX_SPARSE_TEXTURE_SIZE_AMD

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

GL_MIN_LOD_WARNING_AMDback to summary
public static final int GL_MIN_LOD_WARNING_AMD

Accepted by the pname parameter of TexParameter{if}{v} and GetTexParameter{if}v.

GL_MIN_SPARSE_LEVEL_AMDback to summary
public static final int GL_MIN_SPARSE_LEVEL_AMD

Accepted by the pname parameter of GetTexParameter{if}v.

GL_TEXTURE_STORAGE_SPARSE_BIT_AMDback to summary
public static final int GL_TEXTURE_STORAGE_SPARSE_BIT_AMD

Accepted by the flags parameter to TexStorageSparseAMD and TextureStorageSparseAMD.

GL_VIRTUAL_PAGE_SIZE_X_AMDback to summary
public static final int GL_VIRTUAL_PAGE_SIZE_X_AMD

Accepted by the pname parameter to GetInternalformativ.

GL_VIRTUAL_PAGE_SIZE_Y_AMDback to summary
public static final int GL_VIRTUAL_PAGE_SIZE_Y_AMD

Accepted by the pname parameter to GetInternalformativ.

GL_VIRTUAL_PAGE_SIZE_Z_AMDback to summary
public static final int GL_VIRTUAL_PAGE_SIZE_Z_AMD

Accepted by the pname parameter to GetInternalformativ.

Constructor Detail

AMDSparseTextureback to summary
protected AMDSparseTexture()

Method Detail

glTexStorageSparseAMDback to summary
public static native void glTexStorageSparseAMD(int target, int internalFormat, int width, int height, int depth, int layers, int flags)
glTextureStorageSparseAMDback to summary
public static native void glTextureStorageSparseAMD(int texture, int target, int internalFormat, int width, int height, int depth, int layers, int flags)