-- This file was automatically generated.
{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.ARB.SparseTexture (
  -- * Extension Support
    gl_ARB_sparse_texture

  -- * GL_ARB_sparse_texture
  , glTexPageCommitmentARB
  , pattern GL_MAX_SPARSE_3D_TEXTURE_SIZE_ARB
  , pattern GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS_ARB
  , pattern GL_MAX_SPARSE_TEXTURE_SIZE_ARB
  , pattern GL_NUM_SPARSE_LEVELS_ARB
  , pattern GL_NUM_VIRTUAL_PAGE_SIZES_ARB
  , pattern GL_SPARSE_TEXTURE_FULL_ARRAY_CUBE_MIPMAPS_ARB
  , pattern GL_TEXTURE_SPARSE_ARB
  , pattern GL_VIRTUAL_PAGE_SIZE_INDEX_ARB
  , pattern GL_VIRTUAL_PAGE_SIZE_X_ARB
  , pattern GL_VIRTUAL_PAGE_SIZE_Y_ARB
  , pattern GL_VIRTUAL_PAGE_SIZE_Z_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

-- | Checks that the <https://cvs.khronos.org/svn/repos/ogl/trunk/doc/registry/public/specs/ARB/sparse_texture.txt GL_ARB_sparse_texture> extension is available.

gl_ARB_sparse_texture :: Bool
gl_ARB_sparse_texture :: Bool
gl_ARB_sparse_texture = [Char] -> Set [Char] -> Bool
forall a. Ord a => a -> Set a -> Bool
member "GL_ARB_sparse_texture" Set [Char]
extensions
{-# NOINLINE gl_ARB_sparse_texture #-}

-- | Usage: @'glTexPageCommitmentARB' target level xoffset yoffset zoffset width height depth commit@


glTexPageCommitmentARB :: MonadIO m => GLenum -> GLint -> GLint -> GLint -> GLint -> GLsizei -> GLsizei -> GLsizei -> GLboolean -> m ()
glTexPageCommitmentARB :: GLenum
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLboolean
-> m ()
glTexPageCommitmentARB = FunPtr
  (GLenum
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLboolean
   -> IO ())
-> GLenum
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLboolean
-> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr
  (GLenum
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLboolean
   -> IO ())
-> GLenum
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLboolean
-> m ()
ffienumintintintintsizeisizeisizeibooleanIOV FunPtr
  (GLenum
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLboolean
   -> IO ())
glTexPageCommitmentARBFunPtr

glTexPageCommitmentARBFunPtr :: FunPtr (GLenum -> GLint -> GLint -> GLint -> GLint -> GLsizei -> GLsizei -> GLsizei -> GLboolean -> IO ())
glTexPageCommitmentARBFunPtr :: FunPtr
  (GLenum
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLboolean
   -> IO ())
glTexPageCommitmentARBFunPtr = IO
  (FunPtr
     (GLenum
      -> GLint
      -> GLint
      -> GLint
      -> GLint
      -> GLint
      -> GLint
      -> GLint
      -> GLboolean
      -> IO ()))
-> FunPtr
     (GLenum
      -> GLint
      -> GLint
      -> GLint
      -> GLint
      -> GLint
      -> GLint
      -> GLint
      -> GLboolean
      -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char]
-> IO
     (FunPtr
        (GLenum
         -> GLint
         -> GLint
         -> GLint
         -> GLint
         -> GLint
         -> GLint
         -> GLint
         -> GLboolean
         -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glTexPageCommitmentARB")

{-# NOINLINE glTexPageCommitmentARBFunPtr #-}

pattern $bGL_MAX_SPARSE_3D_TEXTURE_SIZE_ARB :: a
$mGL_MAX_SPARSE_3D_TEXTURE_SIZE_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_SPARSE_3D_TEXTURE_SIZE_ARB = 0x9199

pattern $bGL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS_ARB :: a
$mGL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS_ARB = 0x919A

pattern $bGL_MAX_SPARSE_TEXTURE_SIZE_ARB :: a
$mGL_MAX_SPARSE_TEXTURE_SIZE_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_SPARSE_TEXTURE_SIZE_ARB = 0x9198

pattern $bGL_NUM_SPARSE_LEVELS_ARB :: a
$mGL_NUM_SPARSE_LEVELS_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_NUM_SPARSE_LEVELS_ARB = 0x91AA

pattern $bGL_NUM_VIRTUAL_PAGE_SIZES_ARB :: a
$mGL_NUM_VIRTUAL_PAGE_SIZES_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_NUM_VIRTUAL_PAGE_SIZES_ARB = 0x91A8

pattern $bGL_SPARSE_TEXTURE_FULL_ARRAY_CUBE_MIPMAPS_ARB :: a
$mGL_SPARSE_TEXTURE_FULL_ARRAY_CUBE_MIPMAPS_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_SPARSE_TEXTURE_FULL_ARRAY_CUBE_MIPMAPS_ARB = 0x91A9

pattern $bGL_TEXTURE_SPARSE_ARB :: a
$mGL_TEXTURE_SPARSE_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_TEXTURE_SPARSE_ARB = 0x91A6

pattern $bGL_VIRTUAL_PAGE_SIZE_INDEX_ARB :: a
$mGL_VIRTUAL_PAGE_SIZE_INDEX_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_VIRTUAL_PAGE_SIZE_INDEX_ARB = 0x91A7

pattern $bGL_VIRTUAL_PAGE_SIZE_X_ARB :: a
$mGL_VIRTUAL_PAGE_SIZE_X_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_VIRTUAL_PAGE_SIZE_X_ARB = 0x9195

pattern $bGL_VIRTUAL_PAGE_SIZE_Y_ARB :: a
$mGL_VIRTUAL_PAGE_SIZE_Y_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_VIRTUAL_PAGE_SIZE_Y_ARB = 0x9196

pattern $bGL_VIRTUAL_PAGE_SIZE_Z_ARB :: a
$mGL_VIRTUAL_PAGE_SIZE_Z_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_VIRTUAL_PAGE_SIZE_Z_ARB = 0x9197