module Graphics.GL.Ext.ARB.SparseBuffer (
gl_ARB_sparse_buffer
, glBufferPageCommitmentARB
, glNamedBufferPageCommitmentARB
, glNamedBufferPageCommitmentEXT
, pattern GL_SPARSE_BUFFER_PAGE_SIZE_ARB
, pattern GL_SPARSE_STORAGE_BIT_ARB
) 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_ARB_sparse_buffer :: Bool
gl_ARB_sparse_buffer = member "GL_ARB_sparse_buffer" extensions
glBufferPageCommitmentARB :: MonadIO m => GLenum -> GLintptr -> GLsizeiptr -> GLboolean -> m ()
glBufferPageCommitmentARB = ffienumintptrsizeiptrbooleanIOV glBufferPageCommitmentARBFunPtr
glBufferPageCommitmentARBFunPtr :: FunPtr (GLenum -> GLintptr -> GLsizeiptr -> GLboolean -> IO ())
glBufferPageCommitmentARBFunPtr = unsafePerformIO (getProcAddress "glBufferPageCommitmentARB")
glNamedBufferPageCommitmentARB :: MonadIO m => GLuint -> GLintptr -> GLsizeiptr -> GLboolean -> m ()
glNamedBufferPageCommitmentARB = ffiuintintptrsizeiptrbooleanIOV glNamedBufferPageCommitmentARBFunPtr
glNamedBufferPageCommitmentARBFunPtr :: FunPtr (GLuint -> GLintptr -> GLsizeiptr -> GLboolean -> IO ())
glNamedBufferPageCommitmentARBFunPtr = unsafePerformIO (getProcAddress "glNamedBufferPageCommitmentARB")
glNamedBufferPageCommitmentEXT :: MonadIO m => GLuint -> GLintptr -> GLsizeiptr -> GLboolean -> m ()
glNamedBufferPageCommitmentEXT = ffiuintintptrsizeiptrbooleanIOV glNamedBufferPageCommitmentEXTFunPtr
glNamedBufferPageCommitmentEXTFunPtr :: FunPtr (GLuint -> GLintptr -> GLsizeiptr -> GLboolean -> IO ())
glNamedBufferPageCommitmentEXTFunPtr = unsafePerformIO (getProcAddress "glNamedBufferPageCommitmentEXT")
pattern GL_SPARSE_BUFFER_PAGE_SIZE_ARB = 0x82F8
pattern GL_SPARSE_STORAGE_BIT_ARB = 0x0400