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

  -- * GL_NV_conservative_raster
  , glSubpixelPrecisionBiasNV
  , pattern GL_CONSERVATIVE_RASTERIZATION_NV
  , pattern GL_MAX_SUBPIXEL_PRECISION_BIAS_BITS_NV
  , pattern GL_SUBPIXEL_PRECISION_BIAS_X_BITS_NV
  , pattern GL_SUBPIXEL_PRECISION_BIAS_Y_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/conservative_raster.txt GL_NV_conservative_raster> extension is available.

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

-- | Usage: @'glSubpixelPrecisionBiasNV' xbits ybits@


glSubpixelPrecisionBiasNV :: MonadIO m => GLuint -> GLuint -> m ()
glSubpixelPrecisionBiasNV :: GLuint -> GLuint -> m ()
glSubpixelPrecisionBiasNV = FunPtr (GLuint -> GLuint -> IO ()) -> GLuint -> GLuint -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLuint -> GLuint -> IO ()) -> GLuint -> GLuint -> m ()
ffiuintuintIOV FunPtr (GLuint -> GLuint -> IO ())
glSubpixelPrecisionBiasNVFunPtr

glSubpixelPrecisionBiasNVFunPtr :: FunPtr (GLuint -> GLuint -> IO ())
glSubpixelPrecisionBiasNVFunPtr :: FunPtr (GLuint -> GLuint -> IO ())
glSubpixelPrecisionBiasNVFunPtr = IO (FunPtr (GLuint -> GLuint -> IO ()))
-> FunPtr (GLuint -> GLuint -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char] -> IO (FunPtr (GLuint -> GLuint -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glSubpixelPrecisionBiasNV")

{-# NOINLINE glSubpixelPrecisionBiasNVFunPtr #-}

pattern $bGL_CONSERVATIVE_RASTERIZATION_NV :: a
$mGL_CONSERVATIVE_RASTERIZATION_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_CONSERVATIVE_RASTERIZATION_NV = 0x9346

pattern $bGL_MAX_SUBPIXEL_PRECISION_BIAS_BITS_NV :: a
$mGL_MAX_SUBPIXEL_PRECISION_BIAS_BITS_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_MAX_SUBPIXEL_PRECISION_BIAS_BITS_NV = 0x9349

pattern $bGL_SUBPIXEL_PRECISION_BIAS_X_BITS_NV :: a
$mGL_SUBPIXEL_PRECISION_BIAS_X_BITS_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_SUBPIXEL_PRECISION_BIAS_X_BITS_NV = 0x9347

pattern $bGL_SUBPIXEL_PRECISION_BIAS_Y_BITS_NV :: a
$mGL_SUBPIXEL_PRECISION_BIAS_Y_BITS_NV :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_SUBPIXEL_PRECISION_BIAS_Y_BITS_NV = 0x9348