module Graphics.GL.Ext.INTEL.MapTexture (
gl_INTEL_map_texture
, glMapTexture2DINTEL
, glSyncTextureINTEL
, glUnmapTexture2DINTEL
, pattern GL_LAYOUT_DEFAULT_INTEL
, pattern GL_LAYOUT_LINEAR_CPU_CACHED_INTEL
, pattern GL_LAYOUT_LINEAR_INTEL
, pattern GL_TEXTURE_MEMORY_LAYOUT_INTEL
) 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
gl_INTEL_map_texture :: Bool
gl_INTEL_map_texture = member "GL_INTEL_map_texture" extensions
glMapTexture2DINTEL :: MonadIO m => GLuint -> GLint -> GLbitfield -> Ptr GLint -> Ptr GLenum -> m (Ptr ())
glMapTexture2DINTEL = ffiuintintbitfieldPtrintPtrenumIOPtrV glMapTexture2DINTELFunPtr
glMapTexture2DINTELFunPtr :: FunPtr (GLuint -> GLint -> GLbitfield -> Ptr GLint -> Ptr GLenum -> IO (Ptr ()))
glMapTexture2DINTELFunPtr = unsafePerformIO (getProcAddress "glMapTexture2DINTEL")
glSyncTextureINTEL :: MonadIO m => GLuint -> m ()
glSyncTextureINTEL = ffiuintIOV glSyncTextureINTELFunPtr
glSyncTextureINTELFunPtr :: FunPtr (GLuint -> IO ())
glSyncTextureINTELFunPtr = unsafePerformIO (getProcAddress "glSyncTextureINTEL")
glUnmapTexture2DINTEL :: MonadIO m => GLuint -> GLint -> m ()
glUnmapTexture2DINTEL = ffiuintintIOV glUnmapTexture2DINTELFunPtr
glUnmapTexture2DINTELFunPtr :: FunPtr (GLuint -> GLint -> IO ())
glUnmapTexture2DINTELFunPtr = unsafePerformIO (getProcAddress "glUnmapTexture2DINTEL")
pattern GL_LAYOUT_DEFAULT_INTEL = 0
pattern GL_LAYOUT_LINEAR_CPU_CACHED_INTEL = 2
pattern GL_LAYOUT_LINEAR_INTEL = 1
pattern GL_TEXTURE_MEMORY_LAYOUT_INTEL = 0x83FF