-- This file was automatically generated.
{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.QCOM.TiledRendering (
  -- * Extension Support
    gl_QCOM_tiled_rendering

  -- * GL_QCOM_tiled_rendering
  , glEndTilingQCOM
  , glStartTilingQCOM
  , pattern GL_COLOR_BUFFER_BIT0_QCOM
  , pattern GL_COLOR_BUFFER_BIT1_QCOM
  , pattern GL_COLOR_BUFFER_BIT2_QCOM
  , pattern GL_COLOR_BUFFER_BIT3_QCOM
  , pattern GL_COLOR_BUFFER_BIT4_QCOM
  , pattern GL_COLOR_BUFFER_BIT5_QCOM
  , pattern GL_COLOR_BUFFER_BIT6_QCOM
  , pattern GL_COLOR_BUFFER_BIT7_QCOM
  , pattern GL_DEPTH_BUFFER_BIT0_QCOM
  , pattern GL_DEPTH_BUFFER_BIT1_QCOM
  , pattern GL_DEPTH_BUFFER_BIT2_QCOM
  , pattern GL_DEPTH_BUFFER_BIT3_QCOM
  , pattern GL_DEPTH_BUFFER_BIT4_QCOM
  , pattern GL_DEPTH_BUFFER_BIT5_QCOM
  , pattern GL_DEPTH_BUFFER_BIT6_QCOM
  , pattern GL_DEPTH_BUFFER_BIT7_QCOM
  , pattern GL_MULTISAMPLE_BUFFER_BIT0_QCOM
  , pattern GL_MULTISAMPLE_BUFFER_BIT1_QCOM
  , pattern GL_MULTISAMPLE_BUFFER_BIT2_QCOM
  , pattern GL_MULTISAMPLE_BUFFER_BIT3_QCOM
  , pattern GL_MULTISAMPLE_BUFFER_BIT4_QCOM
  , pattern GL_MULTISAMPLE_BUFFER_BIT5_QCOM
  , pattern GL_MULTISAMPLE_BUFFER_BIT6_QCOM
  , pattern GL_MULTISAMPLE_BUFFER_BIT7_QCOM
  , pattern GL_STENCIL_BUFFER_BIT0_QCOM
  , pattern GL_STENCIL_BUFFER_BIT1_QCOM
  , pattern GL_STENCIL_BUFFER_BIT2_QCOM
  , pattern GL_STENCIL_BUFFER_BIT3_QCOM
  , pattern GL_STENCIL_BUFFER_BIT4_QCOM
  , pattern GL_STENCIL_BUFFER_BIT5_QCOM
  , pattern GL_STENCIL_BUFFER_BIT6_QCOM
  , pattern GL_STENCIL_BUFFER_BIT7_QCOM
) 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://www.khronos.org/registry/gles/extensions/QCOM/QCOM_tiled_rendering.txt GL_QCOM_tiled_rendering> extension is available.

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

-- | Usage: @'glEndTilingQCOM' preserveMask@


glEndTilingQCOM :: MonadIO m => GLbitfield -> m ()
glEndTilingQCOM :: GLbitfield -> m ()
glEndTilingQCOM = FunPtr (GLbitfield -> IO ()) -> GLbitfield -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLbitfield -> IO ()) -> GLbitfield -> m ()
ffibitfieldIOV FunPtr (GLbitfield -> IO ())
glEndTilingQCOMFunPtr

glEndTilingQCOMFunPtr :: FunPtr (GLbitfield -> IO ())
glEndTilingQCOMFunPtr :: FunPtr (GLbitfield -> IO ())
glEndTilingQCOMFunPtr = IO (FunPtr (GLbitfield -> IO ())) -> FunPtr (GLbitfield -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLbitfield -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glEndTilingQCOM")

{-# NOINLINE glEndTilingQCOMFunPtr #-}

-- | Usage: @'glStartTilingQCOM' x y width height preserveMask@


glStartTilingQCOM :: MonadIO m => GLuint -> GLuint -> GLuint -> GLuint -> GLbitfield -> m ()
glStartTilingQCOM :: GLbitfield
-> GLbitfield -> GLbitfield -> GLbitfield -> GLbitfield -> m ()
glStartTilingQCOM = FunPtr
  (GLbitfield
   -> GLbitfield -> GLbitfield -> GLbitfield -> GLbitfield -> IO ())
-> GLbitfield
-> GLbitfield
-> GLbitfield
-> GLbitfield
-> GLbitfield
-> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr
  (GLbitfield
   -> GLbitfield -> GLbitfield -> GLbitfield -> GLbitfield -> IO ())
-> GLbitfield
-> GLbitfield
-> GLbitfield
-> GLbitfield
-> GLbitfield
-> m ()
ffiuintuintuintuintbitfieldIOV FunPtr
  (GLbitfield
   -> GLbitfield -> GLbitfield -> GLbitfield -> GLbitfield -> IO ())
glStartTilingQCOMFunPtr

glStartTilingQCOMFunPtr :: FunPtr (GLuint -> GLuint -> GLuint -> GLuint -> GLbitfield -> IO ())
glStartTilingQCOMFunPtr :: FunPtr
  (GLbitfield
   -> GLbitfield -> GLbitfield -> GLbitfield -> GLbitfield -> IO ())
glStartTilingQCOMFunPtr = IO
  (FunPtr
     (GLbitfield
      -> GLbitfield -> GLbitfield -> GLbitfield -> GLbitfield -> IO ()))
-> FunPtr
     (GLbitfield
      -> GLbitfield -> GLbitfield -> GLbitfield -> GLbitfield -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char]
-> IO
     (FunPtr
        (GLbitfield
         -> GLbitfield -> GLbitfield -> GLbitfield -> GLbitfield -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glStartTilingQCOM")

{-# NOINLINE glStartTilingQCOMFunPtr #-}

pattern $bGL_COLOR_BUFFER_BIT0_QCOM :: a
$mGL_COLOR_BUFFER_BIT0_QCOM :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_COLOR_BUFFER_BIT0_QCOM = 0x00000001

pattern $bGL_COLOR_BUFFER_BIT1_QCOM :: a
$mGL_COLOR_BUFFER_BIT1_QCOM :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_COLOR_BUFFER_BIT1_QCOM = 0x00000002

pattern $bGL_COLOR_BUFFER_BIT2_QCOM :: a
$mGL_COLOR_BUFFER_BIT2_QCOM :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_COLOR_BUFFER_BIT2_QCOM = 0x00000004

pattern $bGL_COLOR_BUFFER_BIT3_QCOM :: a
$mGL_COLOR_BUFFER_BIT3_QCOM :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_COLOR_BUFFER_BIT3_QCOM = 0x00000008

pattern $bGL_COLOR_BUFFER_BIT4_QCOM :: a
$mGL_COLOR_BUFFER_BIT4_QCOM :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_COLOR_BUFFER_BIT4_QCOM = 0x00000010

pattern $bGL_COLOR_BUFFER_BIT5_QCOM :: a
$mGL_COLOR_BUFFER_BIT5_QCOM :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_COLOR_BUFFER_BIT5_QCOM = 0x00000020

pattern $bGL_COLOR_BUFFER_BIT6_QCOM :: a
$mGL_COLOR_BUFFER_BIT6_QCOM :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_COLOR_BUFFER_BIT6_QCOM = 0x00000040

pattern $bGL_COLOR_BUFFER_BIT7_QCOM :: a
$mGL_COLOR_BUFFER_BIT7_QCOM :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_COLOR_BUFFER_BIT7_QCOM = 0x00000080

pattern $bGL_DEPTH_BUFFER_BIT0_QCOM :: a
$mGL_DEPTH_BUFFER_BIT0_QCOM :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DEPTH_BUFFER_BIT0_QCOM = 0x00000100

pattern $bGL_DEPTH_BUFFER_BIT1_QCOM :: a
$mGL_DEPTH_BUFFER_BIT1_QCOM :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DEPTH_BUFFER_BIT1_QCOM = 0x00000200

pattern $bGL_DEPTH_BUFFER_BIT2_QCOM :: a
$mGL_DEPTH_BUFFER_BIT2_QCOM :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DEPTH_BUFFER_BIT2_QCOM = 0x00000400

pattern $bGL_DEPTH_BUFFER_BIT3_QCOM :: a
$mGL_DEPTH_BUFFER_BIT3_QCOM :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DEPTH_BUFFER_BIT3_QCOM = 0x00000800

pattern $bGL_DEPTH_BUFFER_BIT4_QCOM :: a
$mGL_DEPTH_BUFFER_BIT4_QCOM :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DEPTH_BUFFER_BIT4_QCOM = 0x00001000

pattern $bGL_DEPTH_BUFFER_BIT5_QCOM :: a
$mGL_DEPTH_BUFFER_BIT5_QCOM :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DEPTH_BUFFER_BIT5_QCOM = 0x00002000

pattern $bGL_DEPTH_BUFFER_BIT6_QCOM :: a
$mGL_DEPTH_BUFFER_BIT6_QCOM :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DEPTH_BUFFER_BIT6_QCOM = 0x00004000

pattern $bGL_DEPTH_BUFFER_BIT7_QCOM :: a
$mGL_DEPTH_BUFFER_BIT7_QCOM :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DEPTH_BUFFER_BIT7_QCOM = 0x00008000

pattern $bGL_MULTISAMPLE_BUFFER_BIT0_QCOM :: a
$mGL_MULTISAMPLE_BUFFER_BIT0_QCOM :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MULTISAMPLE_BUFFER_BIT0_QCOM = 0x01000000

pattern $bGL_MULTISAMPLE_BUFFER_BIT1_QCOM :: a
$mGL_MULTISAMPLE_BUFFER_BIT1_QCOM :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MULTISAMPLE_BUFFER_BIT1_QCOM = 0x02000000

pattern $bGL_MULTISAMPLE_BUFFER_BIT2_QCOM :: a
$mGL_MULTISAMPLE_BUFFER_BIT2_QCOM :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MULTISAMPLE_BUFFER_BIT2_QCOM = 0x04000000

pattern $bGL_MULTISAMPLE_BUFFER_BIT3_QCOM :: a
$mGL_MULTISAMPLE_BUFFER_BIT3_QCOM :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MULTISAMPLE_BUFFER_BIT3_QCOM = 0x08000000

pattern $bGL_MULTISAMPLE_BUFFER_BIT4_QCOM :: a
$mGL_MULTISAMPLE_BUFFER_BIT4_QCOM :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MULTISAMPLE_BUFFER_BIT4_QCOM = 0x10000000

pattern $bGL_MULTISAMPLE_BUFFER_BIT5_QCOM :: a
$mGL_MULTISAMPLE_BUFFER_BIT5_QCOM :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MULTISAMPLE_BUFFER_BIT5_QCOM = 0x20000000

pattern $bGL_MULTISAMPLE_BUFFER_BIT6_QCOM :: a
$mGL_MULTISAMPLE_BUFFER_BIT6_QCOM :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MULTISAMPLE_BUFFER_BIT6_QCOM = 0x40000000

pattern $bGL_MULTISAMPLE_BUFFER_BIT7_QCOM :: a
$mGL_MULTISAMPLE_BUFFER_BIT7_QCOM :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MULTISAMPLE_BUFFER_BIT7_QCOM = 0x80000000

pattern $bGL_STENCIL_BUFFER_BIT0_QCOM :: a
$mGL_STENCIL_BUFFER_BIT0_QCOM :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_STENCIL_BUFFER_BIT0_QCOM = 0x00010000

pattern $bGL_STENCIL_BUFFER_BIT1_QCOM :: a
$mGL_STENCIL_BUFFER_BIT1_QCOM :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_STENCIL_BUFFER_BIT1_QCOM = 0x00020000

pattern $bGL_STENCIL_BUFFER_BIT2_QCOM :: a
$mGL_STENCIL_BUFFER_BIT2_QCOM :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_STENCIL_BUFFER_BIT2_QCOM = 0x00040000

pattern $bGL_STENCIL_BUFFER_BIT3_QCOM :: a
$mGL_STENCIL_BUFFER_BIT3_QCOM :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_STENCIL_BUFFER_BIT3_QCOM = 0x00080000

pattern $bGL_STENCIL_BUFFER_BIT4_QCOM :: a
$mGL_STENCIL_BUFFER_BIT4_QCOM :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_STENCIL_BUFFER_BIT4_QCOM = 0x00100000

pattern $bGL_STENCIL_BUFFER_BIT5_QCOM :: a
$mGL_STENCIL_BUFFER_BIT5_QCOM :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_STENCIL_BUFFER_BIT5_QCOM = 0x00200000

pattern $bGL_STENCIL_BUFFER_BIT6_QCOM :: a
$mGL_STENCIL_BUFFER_BIT6_QCOM :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_STENCIL_BUFFER_BIT6_QCOM = 0x00400000

pattern $bGL_STENCIL_BUFFER_BIT7_QCOM :: a
$mGL_STENCIL_BUFFER_BIT7_QCOM :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_STENCIL_BUFFER_BIT7_QCOM = 0x00800000