{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.AMD.OcclusionQueryEvent (
gl_AMD_occlusion_query_event
, glQueryObjectParameteruiAMD
, pattern GL_OCCLUSION_QUERY_EVENT_MASK_AMD
, pattern GL_QUERY_ALL_EVENT_BITS_AMD
, pattern GL_QUERY_DEPTH_BOUNDS_FAIL_EVENT_BIT_AMD
, pattern GL_QUERY_DEPTH_FAIL_EVENT_BIT_AMD
, pattern GL_QUERY_DEPTH_PASS_EVENT_BIT_AMD
, pattern GL_QUERY_STENCIL_FAIL_EVENT_BIT_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_occlusion_query_event :: Bool
gl_AMD_occlusion_query_event :: Bool
gl_AMD_occlusion_query_event = [Char] -> Set [Char] -> Bool
forall a. Ord a => a -> Set a -> Bool
member "GL_AMD_occlusion_query_event" Set [Char]
extensions
{-# NOINLINE gl_AMD_occlusion_query_event #-}
glQueryObjectParameteruiAMD :: MonadIO m => GLenum -> GLuint -> GLenum -> GLuint -> m ()
glQueryObjectParameteruiAMD :: GLenum -> GLenum -> GLenum -> GLenum -> m ()
glQueryObjectParameteruiAMD = FunPtr (GLenum -> GLenum -> GLenum -> GLenum -> IO ())
-> GLenum -> GLenum -> GLenum -> GLenum -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLenum -> GLenum -> GLenum -> GLenum -> IO ())
-> GLenum -> GLenum -> GLenum -> GLenum -> m ()
ffienumuintenumuintIOV FunPtr (GLenum -> GLenum -> GLenum -> GLenum -> IO ())
glQueryObjectParameteruiAMDFunPtr
glQueryObjectParameteruiAMDFunPtr :: FunPtr (GLenum -> GLuint -> GLenum -> GLuint -> IO ())
glQueryObjectParameteruiAMDFunPtr :: FunPtr (GLenum -> GLenum -> GLenum -> GLenum -> IO ())
glQueryObjectParameteruiAMDFunPtr = IO (FunPtr (GLenum -> GLenum -> GLenum -> GLenum -> IO ()))
-> FunPtr (GLenum -> GLenum -> GLenum -> GLenum -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char]
-> IO (FunPtr (GLenum -> GLenum -> GLenum -> GLenum -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glQueryObjectParameteruiAMD")
{-# NOINLINE glQueryObjectParameteruiAMDFunPtr #-}
pattern $bGL_OCCLUSION_QUERY_EVENT_MASK_AMD :: a
$mGL_OCCLUSION_QUERY_EVENT_MASK_AMD :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_OCCLUSION_QUERY_EVENT_MASK_AMD = 0x874F
pattern $bGL_QUERY_ALL_EVENT_BITS_AMD :: a
$mGL_QUERY_ALL_EVENT_BITS_AMD :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_QUERY_ALL_EVENT_BITS_AMD = 0xFFFFFFFF
pattern $bGL_QUERY_DEPTH_BOUNDS_FAIL_EVENT_BIT_AMD :: a
$mGL_QUERY_DEPTH_BOUNDS_FAIL_EVENT_BIT_AMD :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_QUERY_DEPTH_BOUNDS_FAIL_EVENT_BIT_AMD = 0x00000008
pattern $bGL_QUERY_DEPTH_FAIL_EVENT_BIT_AMD :: a
$mGL_QUERY_DEPTH_FAIL_EVENT_BIT_AMD :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_QUERY_DEPTH_FAIL_EVENT_BIT_AMD = 0x00000002
pattern $bGL_QUERY_DEPTH_PASS_EVENT_BIT_AMD :: a
$mGL_QUERY_DEPTH_PASS_EVENT_BIT_AMD :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_QUERY_DEPTH_PASS_EVENT_BIT_AMD = 0x00000001
pattern $bGL_QUERY_STENCIL_FAIL_EVENT_BIT_AMD :: a
$mGL_QUERY_STENCIL_FAIL_EVENT_BIT_AMD :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_QUERY_STENCIL_FAIL_EVENT_BIT_AMD = 0x00000004