module Graphics.GL.Ext.AMD.SparseTexture (
gl_AMD_sparse_texture
, glTexStorageSparseAMD
, glTextureStorageSparseAMD
, pattern GL_MAX_SPARSE_3D_TEXTURE_SIZE_AMD
, pattern GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS
, pattern GL_MAX_SPARSE_TEXTURE_SIZE_AMD
, pattern GL_MIN_LOD_WARNING_AMD
, pattern GL_MIN_SPARSE_LEVEL_AMD
, pattern GL_TEXTURE_STORAGE_SPARSE_BIT_AMD
, pattern GL_VIRTUAL_PAGE_SIZE_X_AMD
, pattern GL_VIRTUAL_PAGE_SIZE_Y_AMD
, pattern GL_VIRTUAL_PAGE_SIZE_Z_AMD
) where
import Control.Monad.IO.Class
import Data.Set
import Foreign.Ptr
import Graphics.GL.Internal.FFI
import Graphics.GL.Internal.Proc
import Graphics.GL.Types
import System.IO.Unsafe
gl_AMD_sparse_texture :: Bool
gl_AMD_sparse_texture = member "GL_AMD_sparse_texture" extensions
glTexStorageSparseAMD :: MonadIO m => GLenum -> GLenum -> GLsizei -> GLsizei -> GLsizei -> GLsizei -> GLbitfield -> m ()
glTexStorageSparseAMD = ffienumenumsizeisizeisizeisizeibitfieldIOV glTexStorageSparseAMDFunPtr
glTexStorageSparseAMDFunPtr :: FunPtr (GLenum -> GLenum -> GLsizei -> GLsizei -> GLsizei -> GLsizei -> GLbitfield -> IO ())
glTexStorageSparseAMDFunPtr = unsafePerformIO (getProcAddress "glTexStorageSparseAMD")
glTextureStorageSparseAMD :: MonadIO m => GLuint -> GLenum -> GLenum -> GLsizei -> GLsizei -> GLsizei -> GLsizei -> GLbitfield -> m ()
glTextureStorageSparseAMD = ffiuintenumenumsizeisizeisizeisizeibitfieldIOV glTextureStorageSparseAMDFunPtr
glTextureStorageSparseAMDFunPtr :: FunPtr (GLuint -> GLenum -> GLenum -> GLsizei -> GLsizei -> GLsizei -> GLsizei -> GLbitfield -> IO ())
glTextureStorageSparseAMDFunPtr = unsafePerformIO (getProcAddress "glTextureStorageSparseAMD")
pattern GL_MAX_SPARSE_3D_TEXTURE_SIZE_AMD = 0x9199
pattern GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS = 0x919A
pattern GL_MAX_SPARSE_TEXTURE_SIZE_AMD = 0x9198
pattern GL_MIN_LOD_WARNING_AMD = 0x919C
pattern GL_MIN_SPARSE_LEVEL_AMD = 0x919B
pattern GL_TEXTURE_STORAGE_SPARSE_BIT_AMD = 0x00000001
pattern GL_VIRTUAL_PAGE_SIZE_X_AMD = 0x9195
pattern GL_VIRTUAL_PAGE_SIZE_Y_AMD = 0x9196
pattern GL_VIRTUAL_PAGE_SIZE_Z_AMD = 0x9197