-- This file was automatically generated.
{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.OES.TextureView (
  -- * Extension Support
    gl_OES_texture_view

  -- * GL_OES_texture_view
  , glTextureViewOES
  , pattern GL_TEXTURE_IMMUTABLE_LEVELS
  , pattern GL_TEXTURE_VIEW_MIN_LAYER_OES
  , pattern GL_TEXTURE_VIEW_MIN_LEVEL_OES
  , pattern GL_TEXTURE_VIEW_NUM_LAYERS_OES
  , pattern GL_TEXTURE_VIEW_NUM_LEVELS_OES
) 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/OES/OES_texture_view.txt GL_OES_texture_view> extension is available.

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

-- | Usage: @'glTextureViewOES' texture target origtexture internalformat minlevel numlevels minlayer numlayers@
--
-- This command is an alias for 'Graphics.GL.Internal.Shared.glTextureView'.


glTextureViewOES :: MonadIO m => GLuint -> GLenum -> GLuint -> GLenum -> GLuint -> GLuint -> GLuint -> GLuint -> m ()
glTextureViewOES :: GLuint
-> GLuint
-> GLuint
-> GLuint
-> GLuint
-> GLuint
-> GLuint
-> GLuint
-> m ()
glTextureViewOES = FunPtr
  (GLuint
   -> GLuint
   -> GLuint
   -> GLuint
   -> GLuint
   -> GLuint
   -> GLuint
   -> GLuint
   -> IO ())
-> GLuint
-> GLuint
-> GLuint
-> GLuint
-> GLuint
-> GLuint
-> GLuint
-> GLuint
-> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr
  (GLuint
   -> GLuint
   -> GLuint
   -> GLuint
   -> GLuint
   -> GLuint
   -> GLuint
   -> GLuint
   -> IO ())
-> GLuint
-> GLuint
-> GLuint
-> GLuint
-> GLuint
-> GLuint
-> GLuint
-> GLuint
-> m ()
ffiuintenumuintenumuintuintuintuintIOV FunPtr
  (GLuint
   -> GLuint
   -> GLuint
   -> GLuint
   -> GLuint
   -> GLuint
   -> GLuint
   -> GLuint
   -> IO ())
glTextureViewOESFunPtr

glTextureViewOESFunPtr :: FunPtr (GLuint -> GLenum -> GLuint -> GLenum -> GLuint -> GLuint -> GLuint -> GLuint -> IO ())
glTextureViewOESFunPtr :: FunPtr
  (GLuint
   -> GLuint
   -> GLuint
   -> GLuint
   -> GLuint
   -> GLuint
   -> GLuint
   -> GLuint
   -> IO ())
glTextureViewOESFunPtr = IO
  (FunPtr
     (GLuint
      -> GLuint
      -> GLuint
      -> GLuint
      -> GLuint
      -> GLuint
      -> GLuint
      -> GLuint
      -> IO ()))
-> FunPtr
     (GLuint
      -> GLuint
      -> GLuint
      -> GLuint
      -> GLuint
      -> GLuint
      -> GLuint
      -> GLuint
      -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char]
-> IO
     (FunPtr
        (GLuint
         -> GLuint
         -> GLuint
         -> GLuint
         -> GLuint
         -> GLuint
         -> GLuint
         -> GLuint
         -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glTextureViewOES")

{-# NOINLINE glTextureViewOESFunPtr #-}

pattern $bGL_TEXTURE_VIEW_MIN_LAYER_OES :: a
$mGL_TEXTURE_VIEW_MIN_LAYER_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_TEXTURE_VIEW_MIN_LAYER_OES = 0x82DD

pattern $bGL_TEXTURE_VIEW_MIN_LEVEL_OES :: a
$mGL_TEXTURE_VIEW_MIN_LEVEL_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_TEXTURE_VIEW_MIN_LEVEL_OES = 0x82DB

pattern $bGL_TEXTURE_VIEW_NUM_LAYERS_OES :: a
$mGL_TEXTURE_VIEW_NUM_LAYERS_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_TEXTURE_VIEW_NUM_LAYERS_OES = 0x82DE

pattern $bGL_TEXTURE_VIEW_NUM_LEVELS_OES :: a
$mGL_TEXTURE_VIEW_NUM_LEVELS_OES :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_TEXTURE_VIEW_NUM_LEVELS_OES = 0x82DC