OpenGL.GL.AMD.sparse_texture
OpenGL extension AMD.sparse_texture
This module customises the behaviour of the
OpenGL.raw.GL.AMD.sparse_texture to provide a more
Python-friendly API
Overview (from the spec)
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.
The official definition of this extension is available here:
http://www.opengl.org/registry/specs/AMD/sparse_texture.txt
Functions
Constants
GL_MAX_SPARSE_3D_TEXTURE_SIZE_AMD (37273)
GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS (37274)
GL_MAX_SPARSE_TEXTURE_SIZE_AMD (37272)
GL_MIN_LOD_WARNING_AMD (37276)
GL_MIN_SPARSE_LEVEL_AMD (37275)
GL_TEXTURE_STORAGE_SPARSE_BIT_AMD (1)
GL_VIRTUAL_PAGE_SIZE_X_AMD (37269)
GL_VIRTUAL_PAGE_SIZE_Y_AMD (37270)
GL_VIRTUAL_PAGE_SIZE_Z_AMD (37271)