{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.ARB.ParallelShaderCompile (
gl_ARB_parallel_shader_compile
, glMaxShaderCompilerThreadsARB
, pattern GL_COMPLETION_STATUS_ARB
, pattern GL_MAX_SHADER_COMPILER_THREADS_ARB
) 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_ARB_parallel_shader_compile :: Bool
gl_ARB_parallel_shader_compile :: Bool
gl_ARB_parallel_shader_compile = [Char] -> Set [Char] -> Bool
forall a. Ord a => a -> Set a -> Bool
member "GL_ARB_parallel_shader_compile" Set [Char]
extensions
{-# NOINLINE gl_ARB_parallel_shader_compile #-}
glMaxShaderCompilerThreadsARB :: MonadIO m => GLuint -> m ()
glMaxShaderCompilerThreadsARB :: GLuint -> m ()
glMaxShaderCompilerThreadsARB = FunPtr (GLuint -> IO ()) -> GLuint -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLuint -> IO ()) -> GLuint -> m ()
ffiuintIOV FunPtr (GLuint -> IO ())
glMaxShaderCompilerThreadsARBFunPtr
glMaxShaderCompilerThreadsARBFunPtr :: FunPtr (GLuint -> IO ())
glMaxShaderCompilerThreadsARBFunPtr :: FunPtr (GLuint -> IO ())
glMaxShaderCompilerThreadsARBFunPtr = IO (FunPtr (GLuint -> IO ())) -> FunPtr (GLuint -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLuint -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glMaxShaderCompilerThreadsARB")
{-# NOINLINE glMaxShaderCompilerThreadsARBFunPtr #-}
pattern $bGL_COMPLETION_STATUS_ARB :: a
$mGL_COMPLETION_STATUS_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_COMPLETION_STATUS_ARB = 0x91B1
pattern $bGL_MAX_SHADER_COMPILER_THREADS_ARB :: a
$mGL_MAX_SHADER_COMPILER_THREADS_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_SHADER_COMPILER_THREADS_ARB = 0x91B0