-- This file was automatically generated.
{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.EXT.ShaderPixelLocalStorage2 (
  -- * Extension Support
    gl_EXT_shader_pixel_local_storage2

  -- * GL_EXT_shader_pixel_local_storage2
  , glClearPixelLocalStorageuiEXT
  , glFramebufferPixelLocalStorageSizeEXT
  , glGetFramebufferPixelLocalStorageSizeEXT
  , pattern GL_FRAMEBUFFER_INCOMPLETE_INSUFFICIENT_SHADER_COMBINED_LOCAL_STORAGE_EXT
  , pattern GL_MAX_SHADER_COMBINED_LOCAL_STORAGE_FAST_SIZE_EXT
  , pattern GL_MAX_SHADER_COMBINED_LOCAL_STORAGE_SIZE_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

-- | Checks that the <https://www.khronos.org/registry/OpenGL/extensions/EXT/EXT_shader_pixel_local_storage2.txt GL_EXT_shader_pixel_local_storage2> extension is available.

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

-- | Usage: @'glClearPixelLocalStorageuiEXT' offset n values@


glClearPixelLocalStorageuiEXT :: MonadIO m => GLsizei -> GLsizei -> Ptr GLuint -> m ()
glClearPixelLocalStorageuiEXT :: GLsizei -> GLsizei -> Ptr GLuint -> m ()
glClearPixelLocalStorageuiEXT = FunPtr (GLsizei -> GLsizei -> Ptr GLuint -> IO ())
-> GLsizei -> GLsizei -> Ptr GLuint -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLsizei -> GLsizei -> Ptr GLuint -> IO ())
-> GLsizei -> GLsizei -> Ptr GLuint -> m ()
ffisizeisizeiPtruintIOV FunPtr (GLsizei -> GLsizei -> Ptr GLuint -> IO ())
glClearPixelLocalStorageuiEXTFunPtr

glClearPixelLocalStorageuiEXTFunPtr :: FunPtr (GLsizei -> GLsizei -> Ptr GLuint -> IO ())
glClearPixelLocalStorageuiEXTFunPtr :: FunPtr (GLsizei -> GLsizei -> Ptr GLuint -> IO ())
glClearPixelLocalStorageuiEXTFunPtr = IO (FunPtr (GLsizei -> GLsizei -> Ptr GLuint -> IO ()))
-> FunPtr (GLsizei -> GLsizei -> Ptr GLuint -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLsizei -> GLsizei -> Ptr GLuint -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glClearPixelLocalStorageuiEXT")

{-# NOINLINE glClearPixelLocalStorageuiEXTFunPtr #-}

-- | Usage: @'glFramebufferPixelLocalStorageSizeEXT' target size@


glFramebufferPixelLocalStorageSizeEXT :: MonadIO m => GLuint -> GLsizei -> m ()
glFramebufferPixelLocalStorageSizeEXT :: GLuint -> GLsizei -> m ()
glFramebufferPixelLocalStorageSizeEXT = FunPtr (GLuint -> GLsizei -> IO ()) -> GLuint -> GLsizei -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLuint -> GLsizei -> IO ()) -> GLuint -> GLsizei -> m ()
ffiuintsizeiIOV FunPtr (GLuint -> GLsizei -> IO ())
glFramebufferPixelLocalStorageSizeEXTFunPtr

glFramebufferPixelLocalStorageSizeEXTFunPtr :: FunPtr (GLuint -> GLsizei -> IO ())
glFramebufferPixelLocalStorageSizeEXTFunPtr :: FunPtr (GLuint -> GLsizei -> IO ())
glFramebufferPixelLocalStorageSizeEXTFunPtr = IO (FunPtr (GLuint -> GLsizei -> IO ()))
-> FunPtr (GLuint -> GLsizei -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLuint -> GLsizei -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glFramebufferPixelLocalStorageSizeEXT")

{-# NOINLINE glFramebufferPixelLocalStorageSizeEXTFunPtr #-}

-- | Usage: @'glGetFramebufferPixelLocalStorageSizeEXT' target@


glGetFramebufferPixelLocalStorageSizeEXT :: MonadIO m => GLuint -> m GLsizei
glGetFramebufferPixelLocalStorageSizeEXT :: GLuint -> m GLsizei
glGetFramebufferPixelLocalStorageSizeEXT = FunPtr (GLuint -> IO GLsizei) -> GLuint -> m GLsizei
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLuint -> IO GLsizei) -> GLuint -> m GLsizei
ffiuintIOsizei FunPtr (GLuint -> IO GLsizei)
glGetFramebufferPixelLocalStorageSizeEXTFunPtr

glGetFramebufferPixelLocalStorageSizeEXTFunPtr :: FunPtr (GLuint -> IO GLsizei)
glGetFramebufferPixelLocalStorageSizeEXTFunPtr :: FunPtr (GLuint -> IO GLsizei)
glGetFramebufferPixelLocalStorageSizeEXTFunPtr = IO (FunPtr (GLuint -> IO GLsizei)) -> FunPtr (GLuint -> IO GLsizei)
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLuint -> IO GLsizei))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glGetFramebufferPixelLocalStorageSizeEXT")

{-# NOINLINE glGetFramebufferPixelLocalStorageSizeEXTFunPtr #-}

pattern $bGL_FRAMEBUFFER_INCOMPLETE_INSUFFICIENT_SHADER_COMBINED_LOCAL_STORAGE_EXT :: a
$mGL_FRAMEBUFFER_INCOMPLETE_INSUFFICIENT_SHADER_COMBINED_LOCAL_STORAGE_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_FRAMEBUFFER_INCOMPLETE_INSUFFICIENT_SHADER_COMBINED_LOCAL_STORAGE_EXT = 0x9652

pattern $bGL_MAX_SHADER_COMBINED_LOCAL_STORAGE_FAST_SIZE_EXT :: a
$mGL_MAX_SHADER_COMBINED_LOCAL_STORAGE_FAST_SIZE_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_SHADER_COMBINED_LOCAL_STORAGE_FAST_SIZE_EXT = 0x9650

pattern $bGL_MAX_SHADER_COMBINED_LOCAL_STORAGE_SIZE_EXT :: a
$mGL_MAX_SHADER_COMBINED_LOCAL_STORAGE_SIZE_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_SHADER_COMBINED_LOCAL_STORAGE_SIZE_EXT = 0x9651