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

  -- * GL_EXT_sparse_texture
  , glTexPageCommitmentEXT
  , pattern GL_MAX_SPARSE_3D_TEXTURE_SIZE_EXT
  , pattern GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS_EXT
  , pattern GL_MAX_SPARSE_TEXTURE_SIZE_EXT
  , pattern GL_NUM_SPARSE_LEVELS_EXT
  , pattern GL_NUM_VIRTUAL_PAGE_SIZES_EXT
  , pattern GL_SPARSE_TEXTURE_FULL_ARRAY_CUBE_MIPMAPS_EXT
  , pattern GL_TEXTURE_2D
  , pattern GL_TEXTURE_2D_ARRAY
  , pattern GL_TEXTURE_3D
  , pattern GL_TEXTURE_CUBE_MAP
  , pattern GL_TEXTURE_CUBE_MAP_ARRAY_OES
  , pattern GL_TEXTURE_SPARSE_EXT
  , pattern GL_VIRTUAL_PAGE_SIZE_INDEX_EXT
  , pattern GL_VIRTUAL_PAGE_SIZE_X_EXT
  , pattern GL_VIRTUAL_PAGE_SIZE_Y_EXT
  , pattern GL_VIRTUAL_PAGE_SIZE_Z_EXT
) 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.Internal.Shared
import Graphics.GL.Types
import System.IO.Unsafe

-- | Checks that the <https://www.khronos.org/registry/gles/extensions/EXT/EXT_sparse_texture.txt GL_EXT_sparse_texture> extension is available.

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

-- | Usage: @'glTexPageCommitmentEXT' target level xoffset yoffset zoffset width height depth commit@
--
-- This command is an alias for 'Graphics.GL.Ext.ARB.SparseTexture.glTexPageCommitmentARB'.


glTexPageCommitmentEXT :: MonadIO m => GLenum -> GLint -> GLint -> GLint -> GLint -> GLsizei -> GLsizei -> GLsizei -> GLboolean -> m ()
glTexPageCommitmentEXT :: GLenum
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLint
-> GLboolean
-> m ()
glTexPageCommitmentEXT = 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 ())
glTexPageCommitmentEXTFunPtr

glTexPageCommitmentEXTFunPtr :: FunPtr (GLenum -> GLint -> GLint -> GLint -> GLint -> GLsizei -> GLsizei -> GLsizei -> GLboolean -> IO ())
glTexPageCommitmentEXTFunPtr :: FunPtr
  (GLenum
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLint
   -> GLboolean
   -> IO ())
glTexPageCommitmentEXTFunPtr = 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 "glTexPageCommitmentEXT")

{-# NOINLINE glTexPageCommitmentEXTFunPtr #-}

pattern $bGL_MAX_SPARSE_3D_TEXTURE_SIZE_EXT :: a
$mGL_MAX_SPARSE_3D_TEXTURE_SIZE_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_SPARSE_3D_TEXTURE_SIZE_EXT = 0x9199

pattern $bGL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS_EXT :: a
$mGL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS_EXT = 0x919A

pattern $bGL_MAX_SPARSE_TEXTURE_SIZE_EXT :: a
$mGL_MAX_SPARSE_TEXTURE_SIZE_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_SPARSE_TEXTURE_SIZE_EXT = 0x9198

pattern $bGL_NUM_SPARSE_LEVELS_EXT :: a
$mGL_NUM_SPARSE_LEVELS_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_NUM_SPARSE_LEVELS_EXT = 0x91AA

pattern $bGL_NUM_VIRTUAL_PAGE_SIZES_EXT :: a
$mGL_NUM_VIRTUAL_PAGE_SIZES_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_NUM_VIRTUAL_PAGE_SIZES_EXT = 0x91A8

pattern $bGL_SPARSE_TEXTURE_FULL_ARRAY_CUBE_MIPMAPS_EXT :: a
$mGL_SPARSE_TEXTURE_FULL_ARRAY_CUBE_MIPMAPS_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_SPARSE_TEXTURE_FULL_ARRAY_CUBE_MIPMAPS_EXT = 0x91A9

pattern $bGL_TEXTURE_SPARSE_EXT :: a
$mGL_TEXTURE_SPARSE_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_TEXTURE_SPARSE_EXT = 0x91A6

pattern $bGL_VIRTUAL_PAGE_SIZE_INDEX_EXT :: a
$mGL_VIRTUAL_PAGE_SIZE_INDEX_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_VIRTUAL_PAGE_SIZE_INDEX_EXT = 0x91A7

pattern $bGL_VIRTUAL_PAGE_SIZE_X_EXT :: a
$mGL_VIRTUAL_PAGE_SIZE_X_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_VIRTUAL_PAGE_SIZE_X_EXT = 0x9195

pattern $bGL_VIRTUAL_PAGE_SIZE_Y_EXT :: a
$mGL_VIRTUAL_PAGE_SIZE_Y_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_VIRTUAL_PAGE_SIZE_Y_EXT = 0x9196

pattern $bGL_VIRTUAL_PAGE_SIZE_Z_EXT :: a
$mGL_VIRTUAL_PAGE_SIZE_Z_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_VIRTUAL_PAGE_SIZE_Z_EXT = 0x9197