{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.KHR.Robustness (
gl_KHR_robustness
, glGetGraphicsResetStatus
, glGetGraphicsResetStatusKHR
, glGetnUniformfv
, glGetnUniformfvKHR
, glGetnUniformiv
, glGetnUniformivKHR
, glGetnUniformuiv
, glGetnUniformuivKHR
, glReadnPixels
, glReadnPixelsKHR
, pattern GL_CONTEXT_LOST
, pattern GL_CONTEXT_LOST_KHR
, pattern GL_CONTEXT_ROBUST_ACCESS
, pattern GL_CONTEXT_ROBUST_ACCESS_KHR
, pattern GL_GUILTY_CONTEXT_RESET
, pattern GL_GUILTY_CONTEXT_RESET_KHR
, pattern GL_INNOCENT_CONTEXT_RESET
, pattern GL_INNOCENT_CONTEXT_RESET_KHR
, pattern GL_LOSE_CONTEXT_ON_RESET
, pattern GL_LOSE_CONTEXT_ON_RESET_KHR
, pattern GL_NO_ERROR
, pattern GL_NO_RESET_NOTIFICATION
, pattern GL_NO_RESET_NOTIFICATION_KHR
, pattern GL_RESET_NOTIFICATION_STRATEGY
, pattern GL_RESET_NOTIFICATION_STRATEGY_KHR
, pattern GL_UNKNOWN_CONTEXT_RESET
, pattern GL_UNKNOWN_CONTEXT_RESET_KHR
) 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
gl_KHR_robustness :: Bool
gl_KHR_robustness :: Bool
gl_KHR_robustness = [Char] -> Set [Char] -> Bool
forall a. Ord a => a -> Set a -> Bool
member "GL_KHR_robustness" Set [Char]
extensions
{-# NOINLINE gl_KHR_robustness #-}
glGetGraphicsResetStatusKHR :: MonadIO m => m GLenum
glGetGraphicsResetStatusKHR :: m GLenum
glGetGraphicsResetStatusKHR = FunPtr (IO GLenum) -> m GLenum
forall (m :: * -> *). MonadIO m => FunPtr (IO GLenum) -> m GLenum
ffiIOenum FunPtr (IO GLenum)
glGetGraphicsResetStatusKHRFunPtr
glGetGraphicsResetStatusKHRFunPtr :: FunPtr (IO GLenum)
glGetGraphicsResetStatusKHRFunPtr :: FunPtr (IO GLenum)
glGetGraphicsResetStatusKHRFunPtr = IO (FunPtr (IO GLenum)) -> FunPtr (IO GLenum)
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (IO GLenum))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glGetGraphicsResetStatusKHR")
{-# NOINLINE glGetGraphicsResetStatusKHRFunPtr #-}
glGetnUniformfvKHR :: MonadIO m => GLuint -> GLint -> GLsizei -> Ptr GLfloat -> m ()
glGetnUniformfvKHR :: GLenum -> GLint -> GLint -> Ptr GLfloat -> m ()
glGetnUniformfvKHR = FunPtr (GLenum -> GLint -> GLint -> Ptr GLfloat -> IO ())
-> GLenum -> GLint -> GLint -> Ptr GLfloat -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLenum -> GLint -> GLint -> Ptr GLfloat -> IO ())
-> GLenum -> GLint -> GLint -> Ptr GLfloat -> m ()
ffiuintintsizeiPtrfloatIOV FunPtr (GLenum -> GLint -> GLint -> Ptr GLfloat -> IO ())
glGetnUniformfvKHRFunPtr
glGetnUniformfvKHRFunPtr :: FunPtr (GLuint -> GLint -> GLsizei -> Ptr GLfloat -> IO ())
glGetnUniformfvKHRFunPtr :: FunPtr (GLenum -> GLint -> GLint -> Ptr GLfloat -> IO ())
glGetnUniformfvKHRFunPtr = IO (FunPtr (GLenum -> GLint -> GLint -> Ptr GLfloat -> IO ()))
-> FunPtr (GLenum -> GLint -> GLint -> Ptr GLfloat -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char]
-> IO (FunPtr (GLenum -> GLint -> GLint -> Ptr GLfloat -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glGetnUniformfvKHR")
{-# NOINLINE glGetnUniformfvKHRFunPtr #-}
glGetnUniformivKHR :: MonadIO m => GLuint -> GLint -> GLsizei -> Ptr GLint -> m ()
glGetnUniformivKHR :: GLenum -> GLint -> GLint -> Ptr GLint -> m ()
glGetnUniformivKHR = FunPtr (GLenum -> GLint -> GLint -> Ptr GLint -> IO ())
-> GLenum -> GLint -> GLint -> Ptr GLint -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLenum -> GLint -> GLint -> Ptr GLint -> IO ())
-> GLenum -> GLint -> GLint -> Ptr GLint -> m ()
ffiuintintsizeiPtrintIOV FunPtr (GLenum -> GLint -> GLint -> Ptr GLint -> IO ())
glGetnUniformivKHRFunPtr
glGetnUniformivKHRFunPtr :: FunPtr (GLuint -> GLint -> GLsizei -> Ptr GLint -> IO ())
glGetnUniformivKHRFunPtr :: FunPtr (GLenum -> GLint -> GLint -> Ptr GLint -> IO ())
glGetnUniformivKHRFunPtr = IO (FunPtr (GLenum -> GLint -> GLint -> Ptr GLint -> IO ()))
-> FunPtr (GLenum -> GLint -> GLint -> Ptr GLint -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char]
-> IO (FunPtr (GLenum -> GLint -> GLint -> Ptr GLint -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glGetnUniformivKHR")
{-# NOINLINE glGetnUniformivKHRFunPtr #-}
glGetnUniformuivKHR :: MonadIO m => GLuint -> GLint -> GLsizei -> Ptr GLuint -> m ()
glGetnUniformuivKHR :: GLenum -> GLint -> GLint -> Ptr GLenum -> m ()
glGetnUniformuivKHR = FunPtr (GLenum -> GLint -> GLint -> Ptr GLenum -> IO ())
-> GLenum -> GLint -> GLint -> Ptr GLenum -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLenum -> GLint -> GLint -> Ptr GLenum -> IO ())
-> GLenum -> GLint -> GLint -> Ptr GLenum -> m ()
ffiuintintsizeiPtruintIOV FunPtr (GLenum -> GLint -> GLint -> Ptr GLenum -> IO ())
glGetnUniformuivKHRFunPtr
glGetnUniformuivKHRFunPtr :: FunPtr (GLuint -> GLint -> GLsizei -> Ptr GLuint -> IO ())
glGetnUniformuivKHRFunPtr :: FunPtr (GLenum -> GLint -> GLint -> Ptr GLenum -> IO ())
glGetnUniformuivKHRFunPtr = IO (FunPtr (GLenum -> GLint -> GLint -> Ptr GLenum -> IO ()))
-> FunPtr (GLenum -> GLint -> GLint -> Ptr GLenum -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char]
-> IO (FunPtr (GLenum -> GLint -> GLint -> Ptr GLenum -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glGetnUniformuivKHR")
{-# NOINLINE glGetnUniformuivKHRFunPtr #-}
glReadnPixelsKHR :: MonadIO m => GLint -> GLint -> GLsizei -> GLsizei -> GLenum -> GLenum -> GLsizei -> Ptr () -> m ()
glReadnPixelsKHR :: GLint
-> GLint
-> GLint
-> GLint
-> GLenum
-> GLenum
-> GLint
-> Ptr ()
-> m ()
glReadnPixelsKHR = FunPtr
(GLint
-> GLint
-> GLint
-> GLint
-> GLenum
-> GLenum
-> GLint
-> Ptr ()
-> IO ())
-> GLint
-> GLint
-> GLint
-> GLint
-> GLenum
-> GLenum
-> GLint
-> Ptr ()
-> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr
(GLint
-> GLint
-> GLint
-> GLint
-> GLenum
-> GLenum
-> GLint
-> Ptr ()
-> IO ())
-> GLint
-> GLint
-> GLint
-> GLint
-> GLenum
-> GLenum
-> GLint
-> Ptr ()
-> m ()
ffiintintsizeisizeienumenumsizeiPtrVIOV FunPtr
(GLint
-> GLint
-> GLint
-> GLint
-> GLenum
-> GLenum
-> GLint
-> Ptr ()
-> IO ())
glReadnPixelsKHRFunPtr
glReadnPixelsKHRFunPtr :: FunPtr (GLint -> GLint -> GLsizei -> GLsizei -> GLenum -> GLenum -> GLsizei -> Ptr () -> IO ())
glReadnPixelsKHRFunPtr :: FunPtr
(GLint
-> GLint
-> GLint
-> GLint
-> GLenum
-> GLenum
-> GLint
-> Ptr ()
-> IO ())
glReadnPixelsKHRFunPtr = IO
(FunPtr
(GLint
-> GLint
-> GLint
-> GLint
-> GLenum
-> GLenum
-> GLint
-> Ptr ()
-> IO ()))
-> FunPtr
(GLint
-> GLint
-> GLint
-> GLint
-> GLenum
-> GLenum
-> GLint
-> Ptr ()
-> IO ())
forall a. IO a -> a
unsafePerformIO ([Char]
-> IO
(FunPtr
(GLint
-> GLint
-> GLint
-> GLint
-> GLenum
-> GLenum
-> GLint
-> Ptr ()
-> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glReadnPixelsKHR")
{-# NOINLINE glReadnPixelsKHRFunPtr #-}
pattern $bGL_CONTEXT_LOST_KHR :: a
$mGL_CONTEXT_LOST_KHR :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_CONTEXT_LOST_KHR = 0x0507
pattern $bGL_CONTEXT_ROBUST_ACCESS_KHR :: a
$mGL_CONTEXT_ROBUST_ACCESS_KHR :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_CONTEXT_ROBUST_ACCESS_KHR = 0x90F3
pattern $bGL_GUILTY_CONTEXT_RESET_KHR :: a
$mGL_GUILTY_CONTEXT_RESET_KHR :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_GUILTY_CONTEXT_RESET_KHR = 0x8253
pattern $bGL_INNOCENT_CONTEXT_RESET_KHR :: a
$mGL_INNOCENT_CONTEXT_RESET_KHR :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_INNOCENT_CONTEXT_RESET_KHR = 0x8254
pattern $bGL_LOSE_CONTEXT_ON_RESET_KHR :: a
$mGL_LOSE_CONTEXT_ON_RESET_KHR :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_LOSE_CONTEXT_ON_RESET_KHR = 0x8252
pattern $bGL_NO_RESET_NOTIFICATION_KHR :: a
$mGL_NO_RESET_NOTIFICATION_KHR :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_NO_RESET_NOTIFICATION_KHR = 0x8261
pattern $bGL_RESET_NOTIFICATION_STRATEGY_KHR :: a
$mGL_RESET_NOTIFICATION_STRATEGY_KHR :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_RESET_NOTIFICATION_STRATEGY_KHR = 0x8256
pattern $bGL_UNKNOWN_CONTEXT_RESET_KHR :: a
$mGL_UNKNOWN_CONTEXT_RESET_KHR :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_UNKNOWN_CONTEXT_RESET_KHR = 0x8255