{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.IMG.FramebufferDownsample (
gl_IMG_framebuffer_downsample
, glFramebufferTexture2DDownsampleIMG
, glFramebufferTextureLayerDownsampleIMG
, pattern GL_DOWNSAMPLE_SCALES_IMG
, pattern GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SCALE_IMG
, pattern GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_AND_DOWNSAMPLE_IMG
, pattern GL_NUM_DOWNSAMPLE_SCALES_IMG
) 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_IMG_framebuffer_downsample :: Bool
gl_IMG_framebuffer_downsample :: Bool
gl_IMG_framebuffer_downsample = [Char] -> Set [Char] -> Bool
forall a. Ord a => a -> Set a -> Bool
member "GL_IMG_framebuffer_downsample" Set [Char]
extensions
{-# NOINLINE gl_IMG_framebuffer_downsample #-}
glFramebufferTexture2DDownsampleIMG :: MonadIO m => GLenum -> GLenum -> GLenum -> GLuint -> GLint -> GLint -> GLint -> m ()
glFramebufferTexture2DDownsampleIMG :: GLenum
-> GLenum -> GLenum -> GLenum -> GLint -> GLint -> GLint -> m ()
glFramebufferTexture2DDownsampleIMG = FunPtr
(GLenum
-> GLenum -> GLenum -> GLenum -> GLint -> GLint -> GLint -> IO ())
-> GLenum
-> GLenum
-> GLenum
-> GLenum
-> GLint
-> GLint
-> GLint
-> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr
(GLenum
-> GLenum -> GLenum -> GLenum -> GLint -> GLint -> GLint -> IO ())
-> GLenum
-> GLenum
-> GLenum
-> GLenum
-> GLint
-> GLint
-> GLint
-> m ()
ffienumenumenumuintintintintIOV FunPtr
(GLenum
-> GLenum -> GLenum -> GLenum -> GLint -> GLint -> GLint -> IO ())
glFramebufferTexture2DDownsampleIMGFunPtr
glFramebufferTexture2DDownsampleIMGFunPtr :: FunPtr (GLenum -> GLenum -> GLenum -> GLuint -> GLint -> GLint -> GLint -> IO ())
glFramebufferTexture2DDownsampleIMGFunPtr :: FunPtr
(GLenum
-> GLenum -> GLenum -> GLenum -> GLint -> GLint -> GLint -> IO ())
glFramebufferTexture2DDownsampleIMGFunPtr = IO
(FunPtr
(GLenum
-> GLenum -> GLenum -> GLenum -> GLint -> GLint -> GLint -> IO ()))
-> FunPtr
(GLenum
-> GLenum -> GLenum -> GLenum -> GLint -> GLint -> GLint -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char]
-> IO
(FunPtr
(GLenum
-> GLenum -> GLenum -> GLenum -> GLint -> GLint -> GLint -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glFramebufferTexture2DDownsampleIMG")
{-# NOINLINE glFramebufferTexture2DDownsampleIMGFunPtr #-}
glFramebufferTextureLayerDownsampleIMG :: MonadIO m => GLenum -> GLenum -> GLuint -> GLint -> GLint -> GLint -> GLint -> m ()
glFramebufferTextureLayerDownsampleIMG :: GLenum
-> GLenum -> GLenum -> GLint -> GLint -> GLint -> GLint -> m ()
glFramebufferTextureLayerDownsampleIMG = FunPtr
(GLenum
-> GLenum -> GLenum -> GLint -> GLint -> GLint -> GLint -> IO ())
-> GLenum
-> GLenum
-> GLenum
-> GLint
-> GLint
-> GLint
-> GLint
-> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr
(GLenum
-> GLenum -> GLenum -> GLint -> GLint -> GLint -> GLint -> IO ())
-> GLenum
-> GLenum
-> GLenum
-> GLint
-> GLint
-> GLint
-> GLint
-> m ()
ffienumenumuintintintintintIOV FunPtr
(GLenum
-> GLenum -> GLenum -> GLint -> GLint -> GLint -> GLint -> IO ())
glFramebufferTextureLayerDownsampleIMGFunPtr
glFramebufferTextureLayerDownsampleIMGFunPtr :: FunPtr (GLenum -> GLenum -> GLuint -> GLint -> GLint -> GLint -> GLint -> IO ())
glFramebufferTextureLayerDownsampleIMGFunPtr :: FunPtr
(GLenum
-> GLenum -> GLenum -> GLint -> GLint -> GLint -> GLint -> IO ())
glFramebufferTextureLayerDownsampleIMGFunPtr = IO
(FunPtr
(GLenum
-> GLenum -> GLenum -> GLint -> GLint -> GLint -> GLint -> IO ()))
-> FunPtr
(GLenum
-> GLenum -> GLenum -> GLint -> GLint -> GLint -> GLint -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char]
-> IO
(FunPtr
(GLenum
-> GLenum -> GLenum -> GLint -> GLint -> GLint -> GLint -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glFramebufferTextureLayerDownsampleIMG")
{-# NOINLINE glFramebufferTextureLayerDownsampleIMGFunPtr #-}
pattern $bGL_DOWNSAMPLE_SCALES_IMG :: a
$mGL_DOWNSAMPLE_SCALES_IMG :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_DOWNSAMPLE_SCALES_IMG = 0x913E
pattern $bGL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SCALE_IMG :: a
$mGL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SCALE_IMG :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SCALE_IMG = 0x913F
pattern $bGL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_AND_DOWNSAMPLE_IMG :: a
$mGL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_AND_DOWNSAMPLE_IMG :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_AND_DOWNSAMPLE_IMG = 0x913C
pattern $bGL_NUM_DOWNSAMPLE_SCALES_IMG :: a
$mGL_NUM_DOWNSAMPLE_SCALES_IMG :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_NUM_DOWNSAMPLE_SCALES_IMG = 0x913D