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

  -- * GL_EXT_multisampled_render_to_texture
  , glFramebufferTexture2DMultisampleEXT
  , glRenderbufferStorageMultisampleEXT
  , pattern GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SAMPLES_EXT
  , pattern GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT
  , pattern GL_MAX_SAMPLES_EXT
  , pattern GL_RENDERBUFFER_SAMPLES_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.Internal.Shared
import Graphics.GL.Types
import System.IO.Unsafe

-- | Checks that the <https://www.khronos.org/registry/gles/extensions/EXT/EXT_multisampled_render_to_texture.txt GL_EXT_multisampled_render_to_texture> extension is available.

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

-- | Usage: @'glFramebufferTexture2DMultisampleEXT' target attachment textarget texture level samples@


glFramebufferTexture2DMultisampleEXT :: MonadIO m => GLenum -> GLenum -> GLenum -> GLuint -> GLint -> GLsizei -> m ()
glFramebufferTexture2DMultisampleEXT :: GLenum -> GLenum -> GLenum -> GLenum -> GLint -> GLint -> m ()
glFramebufferTexture2DMultisampleEXT = FunPtr
  (GLenum -> GLenum -> GLenum -> GLenum -> GLint -> GLint -> IO ())
-> GLenum -> GLenum -> GLenum -> GLenum -> GLint -> GLint -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr
  (GLenum -> GLenum -> GLenum -> GLenum -> GLint -> GLint -> IO ())
-> GLenum -> GLenum -> GLenum -> GLenum -> GLint -> GLint -> m ()
ffienumenumenumuintintsizeiIOV FunPtr
  (GLenum -> GLenum -> GLenum -> GLenum -> GLint -> GLint -> IO ())
glFramebufferTexture2DMultisampleEXTFunPtr

glFramebufferTexture2DMultisampleEXTFunPtr :: FunPtr (GLenum -> GLenum -> GLenum -> GLuint -> GLint -> GLsizei -> IO ())
glFramebufferTexture2DMultisampleEXTFunPtr :: FunPtr
  (GLenum -> GLenum -> GLenum -> GLenum -> GLint -> GLint -> IO ())
glFramebufferTexture2DMultisampleEXTFunPtr = IO
  (FunPtr
     (GLenum -> GLenum -> GLenum -> GLenum -> GLint -> GLint -> IO ()))
-> FunPtr
     (GLenum -> GLenum -> GLenum -> GLenum -> GLint -> GLint -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char]
-> IO
     (FunPtr
        (GLenum -> GLenum -> GLenum -> GLenum -> GLint -> GLint -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glFramebufferTexture2DMultisampleEXT")

{-# NOINLINE glFramebufferTexture2DMultisampleEXTFunPtr #-}

pattern $bGL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SAMPLES_EXT :: a
$mGL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SAMPLES_EXT :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SAMPLES_EXT = 0x8D6C