{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.EXT.BindableUniform (
gl_EXT_bindable_uniform
, glGetUniformBufferSizeEXT
, glGetUniformOffsetEXT
, glUniformBufferEXT
, pattern GL_MAX_BINDABLE_UNIFORM_SIZE_EXT
, pattern GL_MAX_FRAGMENT_BINDABLE_UNIFORMS_EXT
, pattern GL_MAX_GEOMETRY_BINDABLE_UNIFORMS_EXT
, pattern GL_MAX_VERTEX_BINDABLE_UNIFORMS_EXT
, pattern GL_UNIFORM_BUFFER_BINDING_EXT
, pattern GL_UNIFORM_BUFFER_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_bindable_uniform :: Bool
gl_EXT_bindable_uniform :: Bool
gl_EXT_bindable_uniform = [Char] -> Set [Char] -> Bool
forall a. Ord a => a -> Set a -> Bool
member "GL_EXT_bindable_uniform" Set [Char]
extensions
{-# NOINLINE gl_EXT_bindable_uniform #-}
glGetUniformBufferSizeEXT :: MonadIO m => GLuint -> GLint -> m GLint
glGetUniformBufferSizeEXT :: GLuint -> GLint -> m GLint
glGetUniformBufferSizeEXT = FunPtr (GLuint -> GLint -> IO GLint) -> GLuint -> GLint -> m GLint
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLuint -> GLint -> IO GLint) -> GLuint -> GLint -> m GLint
ffiuintintIOint FunPtr (GLuint -> GLint -> IO GLint)
glGetUniformBufferSizeEXTFunPtr
glGetUniformBufferSizeEXTFunPtr :: FunPtr (GLuint -> GLint -> IO GLint)
glGetUniformBufferSizeEXTFunPtr :: FunPtr (GLuint -> GLint -> IO GLint)
glGetUniformBufferSizeEXTFunPtr = IO (FunPtr (GLuint -> GLint -> IO GLint))
-> FunPtr (GLuint -> GLint -> IO GLint)
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLuint -> GLint -> IO GLint))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glGetUniformBufferSizeEXT")
{-# NOINLINE glGetUniformBufferSizeEXTFunPtr #-}
glGetUniformOffsetEXT :: MonadIO m => GLuint -> GLint -> m GLintptr
glGetUniformOffsetEXT :: GLuint -> GLint -> m GLintptr
glGetUniformOffsetEXT = FunPtr (GLuint -> GLint -> IO GLintptr)
-> GLuint -> GLint -> m GLintptr
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLuint -> GLint -> IO GLintptr)
-> GLuint -> GLint -> m GLintptr
ffiuintintIOintptr FunPtr (GLuint -> GLint -> IO GLintptr)
glGetUniformOffsetEXTFunPtr
glGetUniformOffsetEXTFunPtr :: FunPtr (GLuint -> GLint -> IO GLintptr)
glGetUniformOffsetEXTFunPtr :: FunPtr (GLuint -> GLint -> IO GLintptr)
glGetUniformOffsetEXTFunPtr = IO (FunPtr (GLuint -> GLint -> IO GLintptr))
-> FunPtr (GLuint -> GLint -> IO GLintptr)
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLuint -> GLint -> IO GLintptr))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glGetUniformOffsetEXT")
{-# NOINLINE glGetUniformOffsetEXTFunPtr #-}
glUniformBufferEXT :: MonadIO m => GLuint -> GLint -> GLuint -> m ()
glUniformBufferEXT :: GLuint -> GLint -> GLuint -> m ()
glUniformBufferEXT = FunPtr (GLuint -> GLint -> GLuint -> IO ())
-> GLuint -> GLint -> GLuint -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLuint -> GLint -> GLuint -> IO ())
-> GLuint -> GLint -> GLuint -> m ()
ffiuintintuintIOV FunPtr (GLuint -> GLint -> GLuint -> IO ())
glUniformBufferEXTFunPtr
glUniformBufferEXTFunPtr :: FunPtr (GLuint -> GLint -> GLuint -> IO ())
glUniformBufferEXTFunPtr :: FunPtr (GLuint -> GLint -> GLuint -> IO ())
glUniformBufferEXTFunPtr = IO (FunPtr (GLuint -> GLint -> GLuint -> IO ()))
-> FunPtr (GLuint -> GLint -> GLuint -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLuint -> GLint -> GLuint -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glUniformBufferEXT")
{-# NOINLINE glUniformBufferEXTFunPtr #-}
pattern $bGL_MAX_BINDABLE_UNIFORM_SIZE_EXT :: a
$mGL_MAX_BINDABLE_UNIFORM_SIZE_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_BINDABLE_UNIFORM_SIZE_EXT = 0x8DED
pattern $bGL_MAX_FRAGMENT_BINDABLE_UNIFORMS_EXT :: a
$mGL_MAX_FRAGMENT_BINDABLE_UNIFORMS_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_FRAGMENT_BINDABLE_UNIFORMS_EXT = 0x8DE3
pattern $bGL_MAX_GEOMETRY_BINDABLE_UNIFORMS_EXT :: a
$mGL_MAX_GEOMETRY_BINDABLE_UNIFORMS_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_GEOMETRY_BINDABLE_UNIFORMS_EXT = 0x8DE4
pattern $bGL_MAX_VERTEX_BINDABLE_UNIFORMS_EXT :: a
$mGL_MAX_VERTEX_BINDABLE_UNIFORMS_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_VERTEX_BINDABLE_UNIFORMS_EXT = 0x8DE2
pattern $bGL_UNIFORM_BUFFER_BINDING_EXT :: a
$mGL_UNIFORM_BUFFER_BINDING_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_UNIFORM_BUFFER_BINDING_EXT = 0x8DEF
pattern $bGL_UNIFORM_BUFFER_EXT :: a
$mGL_UNIFORM_BUFFER_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_UNIFORM_BUFFER_EXT = 0x8DEE