-- This file was automatically generated.
{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.NV.SampleLocations (
  -- * Extension Support
    gl_NV_sample_locations

  -- * GL_NV_sample_locations
  , glFramebufferSampleLocationsfvNV
  , glNamedFramebufferSampleLocationsfvNV
  , glResolveDepthValuesNV
  , pattern GL_FRAMEBUFFER_PROGRAMMABLE_SAMPLE_LOCATIONS_NV
  , pattern GL_FRAMEBUFFER_SAMPLE_LOCATION_PIXEL_GRID_NV
  , pattern GL_PROGRAMMABLE_SAMPLE_LOCATION_NV
  , pattern GL_PROGRAMMABLE_SAMPLE_LOCATION_TABLE_SIZE_NV
  , pattern GL_SAMPLE_LOCATION_NV
  , pattern GL_SAMPLE_LOCATION_PIXEL_GRID_HEIGHT_NV
  , pattern GL_SAMPLE_LOCATION_PIXEL_GRID_WIDTH_NV
  , pattern GL_SAMPLE_LOCATION_SUBPIXEL_BITS_NV
) 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/NV/sample_locations.txt GL_NV_sample_locations> extension is available.

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

-- | Usage: @'glFramebufferSampleLocationsfvNV' target start count v@


glFramebufferSampleLocationsfvNV :: MonadIO m => GLenum -> GLuint -> GLsizei -> Ptr GLfloat -> m ()
glFramebufferSampleLocationsfvNV :: GLenum -> GLenum -> GLsizei -> Ptr GLfloat -> m ()
glFramebufferSampleLocationsfvNV = FunPtr (GLenum -> GLenum -> GLsizei -> Ptr GLfloat -> IO ())
-> GLenum -> GLenum -> GLsizei -> Ptr GLfloat -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLenum -> GLenum -> GLsizei -> Ptr GLfloat -> IO ())
-> GLenum -> GLenum -> GLsizei -> Ptr GLfloat -> m ()
ffienumuintsizeiPtrfloatIOV FunPtr (GLenum -> GLenum -> GLsizei -> Ptr GLfloat -> IO ())
glFramebufferSampleLocationsfvNVFunPtr

glFramebufferSampleLocationsfvNVFunPtr :: FunPtr (GLenum -> GLuint -> GLsizei -> Ptr GLfloat -> IO ())
glFramebufferSampleLocationsfvNVFunPtr :: FunPtr (GLenum -> GLenum -> GLsizei -> Ptr GLfloat -> IO ())
glFramebufferSampleLocationsfvNVFunPtr = IO (FunPtr (GLenum -> GLenum -> GLsizei -> Ptr GLfloat -> IO ()))
-> FunPtr (GLenum -> GLenum -> GLsizei -> Ptr GLfloat -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char]
-> IO
     (FunPtr (GLenum -> GLenum -> GLsizei -> Ptr GLfloat -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glFramebufferSampleLocationsfvNV")

{-# NOINLINE glFramebufferSampleLocationsfvNVFunPtr #-}

-- | Usage: @'glNamedFramebufferSampleLocationsfvNV' framebuffer start count v@


glNamedFramebufferSampleLocationsfvNV :: MonadIO m => GLuint -> GLuint -> GLsizei -> Ptr GLfloat -> m ()
glNamedFramebufferSampleLocationsfvNV :: GLenum -> GLenum -> GLsizei -> Ptr GLfloat -> m ()
glNamedFramebufferSampleLocationsfvNV = FunPtr (GLenum -> GLenum -> GLsizei -> Ptr GLfloat -> IO ())
-> GLenum -> GLenum -> GLsizei -> Ptr GLfloat -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLenum -> GLenum -> GLsizei -> Ptr GLfloat -> IO ())
-> GLenum -> GLenum -> GLsizei -> Ptr GLfloat -> m ()
ffiuintuintsizeiPtrfloatIOV FunPtr (GLenum -> GLenum -> GLsizei -> Ptr GLfloat -> IO ())
glNamedFramebufferSampleLocationsfvNVFunPtr

glNamedFramebufferSampleLocationsfvNVFunPtr :: FunPtr (GLuint -> GLuint -> GLsizei -> Ptr GLfloat -> IO ())
glNamedFramebufferSampleLocationsfvNVFunPtr :: FunPtr (GLenum -> GLenum -> GLsizei -> Ptr GLfloat -> IO ())
glNamedFramebufferSampleLocationsfvNVFunPtr = IO (FunPtr (GLenum -> GLenum -> GLsizei -> Ptr GLfloat -> IO ()))
-> FunPtr (GLenum -> GLenum -> GLsizei -> Ptr GLfloat -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char]
-> IO
     (FunPtr (GLenum -> GLenum -> GLsizei -> Ptr GLfloat -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glNamedFramebufferSampleLocationsfvNV")

{-# NOINLINE glNamedFramebufferSampleLocationsfvNVFunPtr #-}

-- | Usage: @'glResolveDepthValuesNV'@


glResolveDepthValuesNV :: MonadIO m => m ()
glResolveDepthValuesNV :: m ()
glResolveDepthValuesNV = FunPtr (IO ()) -> m ()
forall (m :: * -> *). MonadIO m => FunPtr (IO ()) -> m ()
ffiIOV FunPtr (IO ())
glResolveDepthValuesNVFunPtr

glResolveDepthValuesNVFunPtr :: FunPtr (IO ())
glResolveDepthValuesNVFunPtr :: FunPtr (IO ())
glResolveDepthValuesNVFunPtr = IO (FunPtr (IO ())) -> FunPtr (IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glResolveDepthValuesNV")

{-# NOINLINE glResolveDepthValuesNVFunPtr #-}

pattern $bGL_FRAMEBUFFER_PROGRAMMABLE_SAMPLE_LOCATIONS_NV :: a
$mGL_FRAMEBUFFER_PROGRAMMABLE_SAMPLE_LOCATIONS_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_FRAMEBUFFER_PROGRAMMABLE_SAMPLE_LOCATIONS_NV = 0x9342

pattern $bGL_FRAMEBUFFER_SAMPLE_LOCATION_PIXEL_GRID_NV :: a
$mGL_FRAMEBUFFER_SAMPLE_LOCATION_PIXEL_GRID_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_FRAMEBUFFER_SAMPLE_LOCATION_PIXEL_GRID_NV = 0x9343

pattern $bGL_PROGRAMMABLE_SAMPLE_LOCATION_NV :: a
$mGL_PROGRAMMABLE_SAMPLE_LOCATION_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_PROGRAMMABLE_SAMPLE_LOCATION_NV = 0x9341

pattern $bGL_PROGRAMMABLE_SAMPLE_LOCATION_TABLE_SIZE_NV :: a
$mGL_PROGRAMMABLE_SAMPLE_LOCATION_TABLE_SIZE_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_PROGRAMMABLE_SAMPLE_LOCATION_TABLE_SIZE_NV = 0x9340

pattern $bGL_SAMPLE_LOCATION_NV :: a
$mGL_SAMPLE_LOCATION_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_SAMPLE_LOCATION_NV = 0x8E50

pattern $bGL_SAMPLE_LOCATION_PIXEL_GRID_HEIGHT_NV :: a
$mGL_SAMPLE_LOCATION_PIXEL_GRID_HEIGHT_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_SAMPLE_LOCATION_PIXEL_GRID_HEIGHT_NV = 0x933F

pattern $bGL_SAMPLE_LOCATION_PIXEL_GRID_WIDTH_NV :: a
$mGL_SAMPLE_LOCATION_PIXEL_GRID_WIDTH_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_SAMPLE_LOCATION_PIXEL_GRID_WIDTH_NV = 0x933E

pattern $bGL_SAMPLE_LOCATION_SUBPIXEL_BITS_NV :: a
$mGL_SAMPLE_LOCATION_SUBPIXEL_BITS_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_SAMPLE_LOCATION_SUBPIXEL_BITS_NV = 0x933D