-- This file was automatically generated.
{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.ARB.ComputeVariableGroupSize (
  -- * Extension Support
    gl_ARB_compute_variable_group_size

  -- * GL_ARB_compute_variable_group_size
  , glDispatchComputeGroupSizeARB
  , pattern GL_MAX_COMPUTE_FIXED_GROUP_INVOCATIONS_ARB
  , pattern GL_MAX_COMPUTE_FIXED_GROUP_SIZE_ARB
  , pattern GL_MAX_COMPUTE_VARIABLE_GROUP_INVOCATIONS_ARB
  , pattern GL_MAX_COMPUTE_VARIABLE_GROUP_SIZE_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

-- | Checks that the <https://cvs.khronos.org/svn/repos/ogl/trunk/doc/registry/public/specs/ARB/compute_variable_group_size.txt GL_ARB_compute_variable_group_size> extension is available.

gl_ARB_compute_variable_group_size :: Bool
gl_ARB_compute_variable_group_size :: Bool
gl_ARB_compute_variable_group_size = [Char] -> Set [Char] -> Bool
forall a. Ord a => a -> Set a -> Bool
member "GL_ARB_compute_variable_group_size" Set [Char]
extensions
{-# NOINLINE gl_ARB_compute_variable_group_size #-}

-- | Usage: @'glDispatchComputeGroupSizeARB' num_groups_x num_groups_y num_groups_z group_size_x group_size_y group_size_z@


glDispatchComputeGroupSizeARB :: MonadIO m => GLuint -> GLuint -> GLuint -> GLuint -> GLuint -> GLuint -> m ()
glDispatchComputeGroupSizeARB :: GLuint -> GLuint -> GLuint -> GLuint -> GLuint -> GLuint -> m ()
glDispatchComputeGroupSizeARB = FunPtr
  (GLuint -> GLuint -> GLuint -> GLuint -> GLuint -> GLuint -> IO ())
-> GLuint -> GLuint -> GLuint -> GLuint -> GLuint -> GLuint -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr
  (GLuint -> GLuint -> GLuint -> GLuint -> GLuint -> GLuint -> IO ())
-> GLuint -> GLuint -> GLuint -> GLuint -> GLuint -> GLuint -> m ()
ffiuintuintuintuintuintuintIOV FunPtr
  (GLuint -> GLuint -> GLuint -> GLuint -> GLuint -> GLuint -> IO ())
glDispatchComputeGroupSizeARBFunPtr

glDispatchComputeGroupSizeARBFunPtr :: FunPtr (GLuint -> GLuint -> GLuint -> GLuint -> GLuint -> GLuint -> IO ())
glDispatchComputeGroupSizeARBFunPtr :: FunPtr
  (GLuint -> GLuint -> GLuint -> GLuint -> GLuint -> GLuint -> IO ())
glDispatchComputeGroupSizeARBFunPtr = IO
  (FunPtr
     (GLuint
      -> GLuint -> GLuint -> GLuint -> GLuint -> GLuint -> IO ()))
-> FunPtr
     (GLuint -> GLuint -> GLuint -> GLuint -> GLuint -> GLuint -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char]
-> IO
     (FunPtr
        (GLuint
         -> GLuint -> GLuint -> GLuint -> GLuint -> GLuint -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glDispatchComputeGroupSizeARB")

{-# NOINLINE glDispatchComputeGroupSizeARBFunPtr #-}

pattern $bGL_MAX_COMPUTE_FIXED_GROUP_INVOCATIONS_ARB :: a
$mGL_MAX_COMPUTE_FIXED_GROUP_INVOCATIONS_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_COMPUTE_FIXED_GROUP_INVOCATIONS_ARB = 0x90EB

pattern $bGL_MAX_COMPUTE_FIXED_GROUP_SIZE_ARB :: a
$mGL_MAX_COMPUTE_FIXED_GROUP_SIZE_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_COMPUTE_FIXED_GROUP_SIZE_ARB = 0x91BF

pattern $bGL_MAX_COMPUTE_VARIABLE_GROUP_INVOCATIONS_ARB :: a
$mGL_MAX_COMPUTE_VARIABLE_GROUP_INVOCATIONS_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_COMPUTE_VARIABLE_GROUP_INVOCATIONS_ARB = 0x9344

pattern $bGL_MAX_COMPUTE_VARIABLE_GROUP_SIZE_ARB :: a
$mGL_MAX_COMPUTE_VARIABLE_GROUP_SIZE_ARB :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_COMPUTE_VARIABLE_GROUP_SIZE_ARB = 0x9345