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 = member "GL_ARB_parallel_shader_compile" extensions
glMaxShaderCompilerThreadsARB :: MonadIO m => GLuint -> m ()
glMaxShaderCompilerThreadsARB = ffiuintIOV glMaxShaderCompilerThreadsARBFunPtr
glMaxShaderCompilerThreadsARBFunPtr :: FunPtr (GLuint -> IO ())
glMaxShaderCompilerThreadsARBFunPtr = unsafePerformIO (getProcAddress "glMaxShaderCompilerThreadsARB")
pattern GL_COMPLETION_STATUS_ARB = 0x91B1
pattern GL_MAX_SHADER_COMPILER_THREADS_ARB = 0x91B0