-- This file was automatically generated.
{-# LANGUAGE CPP, ScopedTypeVariables, PatternSynonyms #-}
module Graphics.GL.Ext.ANGLE.TranslatedShaderSource (
  -- * Extension Support
    gl_ANGLE_translated_shader_source

  -- * GL_ANGLE_translated_shader_source
  , glGetTranslatedShaderSourceANGLE
  , pattern GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE
) 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://www.khronos.org/registry/gles/extensions/ANGLE/ANGLE_translated_shader_source.txt GL_ANGLE_translated_shader_source> extension is available.

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

-- | Usage: @'glGetTranslatedShaderSourceANGLE' shader bufsize length source@
--
-- The length of @length@ should be @1@.


glGetTranslatedShaderSourceANGLE :: MonadIO m => GLuint -> GLsizei -> Ptr GLsizei -> Ptr GLchar -> m ()
glGetTranslatedShaderSourceANGLE :: GLuint -> GLsizei -> Ptr GLsizei -> Ptr GLchar -> m ()
glGetTranslatedShaderSourceANGLE = FunPtr (GLuint -> GLsizei -> Ptr GLsizei -> Ptr GLchar -> IO ())
-> GLuint -> GLsizei -> Ptr GLsizei -> Ptr GLchar -> m ()
forall (m :: * -> *).
MonadIO m =>
FunPtr (GLuint -> GLsizei -> Ptr GLsizei -> Ptr GLchar -> IO ())
-> GLuint -> GLsizei -> Ptr GLsizei -> Ptr GLchar -> m ()
ffiuintsizeiPtrsizeiPtrcharIOV FunPtr (GLuint -> GLsizei -> Ptr GLsizei -> Ptr GLchar -> IO ())
glGetTranslatedShaderSourceANGLEFunPtr

glGetTranslatedShaderSourceANGLEFunPtr :: FunPtr (GLuint -> GLsizei -> Ptr GLsizei -> Ptr GLchar -> IO ())
glGetTranslatedShaderSourceANGLEFunPtr :: FunPtr (GLuint -> GLsizei -> Ptr GLsizei -> Ptr GLchar -> IO ())
glGetTranslatedShaderSourceANGLEFunPtr = IO
  (FunPtr (GLuint -> GLsizei -> Ptr GLsizei -> Ptr GLchar -> IO ()))
-> FunPtr (GLuint -> GLsizei -> Ptr GLsizei -> Ptr GLchar -> IO ())
forall a. IO a -> a
unsafePerformIO ([Char]
-> IO
     (FunPtr (GLuint -> GLsizei -> Ptr GLsizei -> Ptr GLchar -> IO ()))
forall a. [Char] -> IO (FunPtr a)
getProcAddress "glGetTranslatedShaderSourceANGLE")

{-# NOINLINE glGetTranslatedShaderSourceANGLEFunPtr #-}

pattern $bGL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE :: a
$mGL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE :: forall r a. (Eq a, Num a) => a -> (Void# -> r) -> (Void# -> r) -> r
GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE = 0x93A0