{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.EXT.X11SyncObject (
gl_EXT_x11_sync_object
, glImportSyncEXT
, pattern GL_SYNC_X11_FENCE_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.Types
import System.IO.Unsafe
gl_EXT_x11_sync_object :: Bool
gl_EXT_x11_sync_object :: Bool
gl_EXT_x11_sync_object = [Char] -> Set [Char] -> Bool
forall a. Ord a => a -> Set a -> Bool
member "GL_EXT_x11_sync_object" Set [Char]
extensions
{-# NOINLINE gl_EXT_x11_sync_object #-}
glImportSyncEXT :: MonadIO m => GLenum -> GLintptr -> GLbitfield -> m GLsync
glImportSyncEXT :: GLenum -> GLintptr -> GLenum -> m GLsync
glImportSyncEXT = FunPtr (GLenum -> GLintptr -> GLenum -> IO GLsync)
-> GLenum -> GLintptr -> GLenum -> m GLsync
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLenum -> GLintptr -> GLenum -> IO GLsync)
-> GLenum -> GLintptr -> GLenum -> m GLsync
ffienumintptrbitfieldIOsync FunPtr (GLenum -> GLintptr -> GLenum -> IO GLsync)
glImportSyncEXTFunPtr
glImportSyncEXTFunPtr :: FunPtr (GLenum -> GLintptr -> GLbitfield -> IO GLsync)
glImportSyncEXTFunPtr :: FunPtr (GLenum -> GLintptr -> GLenum -> IO GLsync)
glImportSyncEXTFunPtr = IO (FunPtr (GLenum -> GLintptr -> GLenum -> IO GLsync))
-> FunPtr (GLenum -> GLintptr -> GLenum -> IO GLsync)
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLenum -> GLintptr -> GLenum -> IO GLsync))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glImportSyncEXT")
{-# NOINLINE glImportSyncEXTFunPtr #-}
pattern $bGL_SYNC_X11_FENCE_EXT :: a
$mGL_SYNC_X11_FENCE_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_SYNC_X11_FENCE_EXT = 0x90E1