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

  -- * GL_NV_texture_barrier
  , glTextureBarrierNV
) where

import Control.Monad.IO.Class
import Data.Set
import Foreign.Ptr
import Graphics.GL.Internal.FFI
import Graphics.GL.Internal.Proc
import System.IO.Unsafe

-- | Checks that the <https://cvs.khronos.org/svn/repos/ogl/trunk/doc/registry/public/specs/NV/texture_barrier.txt GL_NV_texture_barrier> extension is available.

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

-- | Usage: @'glTextureBarrierNV'@


glTextureBarrierNV :: MonadIO m => m ()
glTextureBarrierNV :: m ()
glTextureBarrierNV = FunPtr (IO ()) -> m ()
forall (m :: * -> *). MonadIO m => FunPtr (IO ()) -> m ()
ffiIOV FunPtr (IO ())
glTextureBarrierNVFunPtr

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

{-# NOINLINE glTextureBarrierNVFunPtr #-}