{-# language CPP #-}
module Vulkan.Extensions.VK_MVK_macos_surface ( createMacOSSurfaceMVK
, MacOSSurfaceCreateInfoMVK(..)
, MacOSSurfaceCreateFlagsMVK(..)
, MVK_MACOS_SURFACE_SPEC_VERSION
, pattern MVK_MACOS_SURFACE_SPEC_VERSION
, MVK_MACOS_SURFACE_EXTENSION_NAME
, pattern MVK_MACOS_SURFACE_EXTENSION_NAME
, SurfaceKHR(..)
) where
import Control.Exception.Base (bracket)
import Control.Monad (unless)
import Control.Monad.IO.Class (liftIO)
import Foreign.Marshal.Alloc (allocaBytesAligned)
import Foreign.Marshal.Alloc (callocBytes)
import Foreign.Marshal.Alloc (free)
import GHC.Base (when)
import GHC.IO (throwIO)
import GHC.Ptr (nullFunPtr)
import Foreign.Ptr (nullPtr)
import Foreign.Ptr (plusPtr)
import GHC.Read (choose)
import GHC.Read (expectP)
import GHC.Read (parens)
import GHC.Show (showParen)
import GHC.Show (showString)
import Numeric (showHex)
import Text.ParserCombinators.ReadPrec ((+++))
import Text.ParserCombinators.ReadPrec (prec)
import Text.ParserCombinators.ReadPrec (step)
import Control.Monad.Trans.Class (lift)
import Control.Monad.Trans.Cont (evalContT)
import Control.Monad.IO.Class (MonadIO)
import Data.Bits (Bits)
import Data.String (IsString)
import Data.Typeable (Typeable)
import Foreign.Storable (Storable)
import Foreign.Storable (Storable(peek))
import Foreign.Storable (Storable(poke))
import qualified Foreign.Storable (Storable(..))
import GHC.IO.Exception (IOErrorType(..))
import GHC.IO.Exception (IOException(..))
import Foreign.Ptr (FunPtr)
import Foreign.Ptr (Ptr)
import GHC.Read (Read(readPrec))
import Text.Read.Lex (Lexeme(Ident))
import Data.Kind (Type)
import Control.Monad.Trans.Cont (ContT(..))
import Vulkan.NamedType ((:::))
import Vulkan.Core10.AllocationCallbacks (AllocationCallbacks)
import Vulkan.Core10.BaseType (Flags)
import Vulkan.CStruct (FromCStruct)
import Vulkan.CStruct (FromCStruct(..))
import Vulkan.Core10.Handles (Instance)
import Vulkan.Core10.Handles (Instance(..))
import Vulkan.Dynamic (InstanceCmds(pVkCreateMacOSSurfaceMVK))
import Vulkan.Core10.Handles (Instance_T)
import Vulkan.Core10.Enums.Result (Result)
import Vulkan.Core10.Enums.Result (Result(..))
import Vulkan.Core10.Enums.StructureType (StructureType)
import Vulkan.Extensions.Handles (SurfaceKHR)
import Vulkan.Extensions.Handles (SurfaceKHR(..))
import Vulkan.CStruct (ToCStruct)
import Vulkan.CStruct (ToCStruct(..))
import Vulkan.Exception (VulkanException(..))
import Vulkan.Zero (Zero)
import Vulkan.Zero (Zero(..))
import Vulkan.Core10.Enums.StructureType (StructureType(STRUCTURE_TYPE_MACOS_SURFACE_CREATE_INFO_MVK))
import Vulkan.Core10.Enums.Result (Result(SUCCESS))
import Vulkan.Extensions.Handles (SurfaceKHR(..))
foreign import ccall
#if !defined(SAFE_FOREIGN_CALLS)
unsafe
#endif
"dynamic" mkVkCreateMacOSSurfaceMVK
:: FunPtr (Ptr Instance_T -> Ptr MacOSSurfaceCreateInfoMVK -> Ptr AllocationCallbacks -> Ptr SurfaceKHR -> IO Result) -> Ptr Instance_T -> Ptr MacOSSurfaceCreateInfoMVK -> Ptr AllocationCallbacks -> Ptr SurfaceKHR -> IO Result
createMacOSSurfaceMVK :: forall io . MonadIO io => Instance -> MacOSSurfaceCreateInfoMVK -> ("allocator" ::: Maybe AllocationCallbacks) -> io (SurfaceKHR)
createMacOSSurfaceMVK :: Instance
-> MacOSSurfaceCreateInfoMVK
-> ("allocator" ::: Maybe AllocationCallbacks)
-> io SurfaceKHR
createMacOSSurfaceMVK instance' :: Instance
instance' createInfo :: MacOSSurfaceCreateInfoMVK
createInfo allocator :: "allocator" ::: Maybe AllocationCallbacks
allocator = IO SurfaceKHR -> io SurfaceKHR
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SurfaceKHR -> io SurfaceKHR)
-> (ContT SurfaceKHR IO SurfaceKHR -> IO SurfaceKHR)
-> ContT SurfaceKHR IO SurfaceKHR
-> io SurfaceKHR
forall b c a. (b -> c) -> (a -> b) -> a -> c
. ContT SurfaceKHR IO SurfaceKHR -> IO SurfaceKHR
forall (m :: * -> *) r. Monad m => ContT r m r -> m r
evalContT (ContT SurfaceKHR IO SurfaceKHR -> io SurfaceKHR)
-> ContT SurfaceKHR IO SurfaceKHR -> io SurfaceKHR
forall a b. (a -> b) -> a -> b
$ do
let vkCreateMacOSSurfaceMVKPtr :: FunPtr
(Ptr Instance_T
-> ("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK)
-> ("pAllocator" ::: Ptr AllocationCallbacks)
-> ("pSurface" ::: Ptr SurfaceKHR)
-> IO Result)
vkCreateMacOSSurfaceMVKPtr = InstanceCmds
-> FunPtr
(Ptr Instance_T
-> ("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK)
-> ("pAllocator" ::: Ptr AllocationCallbacks)
-> ("pSurface" ::: Ptr SurfaceKHR)
-> IO Result)
pVkCreateMacOSSurfaceMVK (Instance -> InstanceCmds
instanceCmds (Instance
instance' :: Instance))
IO () -> ContT SurfaceKHR IO ()
forall (t :: (* -> *) -> * -> *) (m :: * -> *) a.
(MonadTrans t, Monad m) =>
m a -> t m a
lift (IO () -> ContT SurfaceKHR IO ())
-> IO () -> ContT SurfaceKHR IO ()
forall a b. (a -> b) -> a -> b
$ Bool -> IO () -> IO ()
forall (f :: * -> *). Applicative f => Bool -> f () -> f ()
unless (FunPtr
(Ptr Instance_T
-> ("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK)
-> ("pAllocator" ::: Ptr AllocationCallbacks)
-> ("pSurface" ::: Ptr SurfaceKHR)
-> IO Result)
vkCreateMacOSSurfaceMVKPtr FunPtr
(Ptr Instance_T
-> ("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK)
-> ("pAllocator" ::: Ptr AllocationCallbacks)
-> ("pSurface" ::: Ptr SurfaceKHR)
-> IO Result)
-> FunPtr
(Ptr Instance_T
-> ("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK)
-> ("pAllocator" ::: Ptr AllocationCallbacks)
-> ("pSurface" ::: Ptr SurfaceKHR)
-> IO Result)
-> Bool
forall a. Eq a => a -> a -> Bool
/= FunPtr
(Ptr Instance_T
-> ("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK)
-> ("pAllocator" ::: Ptr AllocationCallbacks)
-> ("pSurface" ::: Ptr SurfaceKHR)
-> IO Result)
forall a. FunPtr a
nullFunPtr) (IO () -> IO ()) -> IO () -> IO ()
forall a b. (a -> b) -> a -> b
$
IOException -> IO ()
forall e a. Exception e => e -> IO a
throwIO (IOException -> IO ()) -> IOException -> IO ()
forall a b. (a -> b) -> a -> b
$ Maybe Handle
-> IOErrorType
-> String
-> String
-> Maybe CInt
-> Maybe String
-> IOException
IOError Maybe Handle
forall a. Maybe a
Nothing IOErrorType
InvalidArgument "" "The function pointer for vkCreateMacOSSurfaceMVK is null" Maybe CInt
forall a. Maybe a
Nothing Maybe String
forall a. Maybe a
Nothing
let vkCreateMacOSSurfaceMVK' :: Ptr Instance_T
-> ("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK)
-> ("pAllocator" ::: Ptr AllocationCallbacks)
-> ("pSurface" ::: Ptr SurfaceKHR)
-> IO Result
vkCreateMacOSSurfaceMVK' = FunPtr
(Ptr Instance_T
-> ("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK)
-> ("pAllocator" ::: Ptr AllocationCallbacks)
-> ("pSurface" ::: Ptr SurfaceKHR)
-> IO Result)
-> Ptr Instance_T
-> ("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK)
-> ("pAllocator" ::: Ptr AllocationCallbacks)
-> ("pSurface" ::: Ptr SurfaceKHR)
-> IO Result
mkVkCreateMacOSSurfaceMVK FunPtr
(Ptr Instance_T
-> ("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK)
-> ("pAllocator" ::: Ptr AllocationCallbacks)
-> ("pSurface" ::: Ptr SurfaceKHR)
-> IO Result)
vkCreateMacOSSurfaceMVKPtr
"pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK
pCreateInfo <- ((("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK)
-> IO SurfaceKHR)
-> IO SurfaceKHR)
-> ContT
SurfaceKHR IO ("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK)
forall k (r :: k) (m :: k -> *) a.
((a -> m r) -> m r) -> ContT r m a
ContT (((("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK)
-> IO SurfaceKHR)
-> IO SurfaceKHR)
-> ContT
SurfaceKHR IO ("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK))
-> ((("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK)
-> IO SurfaceKHR)
-> IO SurfaceKHR)
-> ContT
SurfaceKHR IO ("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK)
forall a b. (a -> b) -> a -> b
$ MacOSSurfaceCreateInfoMVK
-> (("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK)
-> IO SurfaceKHR)
-> IO SurfaceKHR
forall a b. ToCStruct a => a -> (Ptr a -> IO b) -> IO b
withCStruct (MacOSSurfaceCreateInfoMVK
createInfo)
"pAllocator" ::: Ptr AllocationCallbacks
pAllocator <- case ("allocator" ::: Maybe AllocationCallbacks
allocator) of
Nothing -> ("pAllocator" ::: Ptr AllocationCallbacks)
-> ContT SurfaceKHR IO ("pAllocator" ::: Ptr AllocationCallbacks)
forall (f :: * -> *) a. Applicative f => a -> f a
pure "pAllocator" ::: Ptr AllocationCallbacks
forall a. Ptr a
nullPtr
Just j :: AllocationCallbacks
j -> ((("pAllocator" ::: Ptr AllocationCallbacks) -> IO SurfaceKHR)
-> IO SurfaceKHR)
-> ContT SurfaceKHR IO ("pAllocator" ::: Ptr AllocationCallbacks)
forall k (r :: k) (m :: k -> *) a.
((a -> m r) -> m r) -> ContT r m a
ContT (((("pAllocator" ::: Ptr AllocationCallbacks) -> IO SurfaceKHR)
-> IO SurfaceKHR)
-> ContT SurfaceKHR IO ("pAllocator" ::: Ptr AllocationCallbacks))
-> ((("pAllocator" ::: Ptr AllocationCallbacks) -> IO SurfaceKHR)
-> IO SurfaceKHR)
-> ContT SurfaceKHR IO ("pAllocator" ::: Ptr AllocationCallbacks)
forall a b. (a -> b) -> a -> b
$ AllocationCallbacks
-> (("pAllocator" ::: Ptr AllocationCallbacks) -> IO SurfaceKHR)
-> IO SurfaceKHR
forall a b. ToCStruct a => a -> (Ptr a -> IO b) -> IO b
withCStruct (AllocationCallbacks
j)
"pSurface" ::: Ptr SurfaceKHR
pPSurface <- ((("pSurface" ::: Ptr SurfaceKHR) -> IO SurfaceKHR)
-> IO SurfaceKHR)
-> ContT SurfaceKHR IO ("pSurface" ::: Ptr SurfaceKHR)
forall k (r :: k) (m :: k -> *) a.
((a -> m r) -> m r) -> ContT r m a
ContT (((("pSurface" ::: Ptr SurfaceKHR) -> IO SurfaceKHR)
-> IO SurfaceKHR)
-> ContT SurfaceKHR IO ("pSurface" ::: Ptr SurfaceKHR))
-> ((("pSurface" ::: Ptr SurfaceKHR) -> IO SurfaceKHR)
-> IO SurfaceKHR)
-> ContT SurfaceKHR IO ("pSurface" ::: Ptr SurfaceKHR)
forall a b. (a -> b) -> a -> b
$ IO ("pSurface" ::: Ptr SurfaceKHR)
-> (("pSurface" ::: Ptr SurfaceKHR) -> IO ())
-> (("pSurface" ::: Ptr SurfaceKHR) -> IO SurfaceKHR)
-> IO SurfaceKHR
forall a b c. IO a -> (a -> IO b) -> (a -> IO c) -> IO c
bracket (Int -> IO ("pSurface" ::: Ptr SurfaceKHR)
forall a. Int -> IO (Ptr a)
callocBytes @SurfaceKHR 8) ("pSurface" ::: Ptr SurfaceKHR) -> IO ()
forall a. Ptr a -> IO ()
free
Result
r <- IO Result -> ContT SurfaceKHR IO Result
forall (t :: (* -> *) -> * -> *) (m :: * -> *) a.
(MonadTrans t, Monad m) =>
m a -> t m a
lift (IO Result -> ContT SurfaceKHR IO Result)
-> IO Result -> ContT SurfaceKHR IO Result
forall a b. (a -> b) -> a -> b
$ Ptr Instance_T
-> ("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK)
-> ("pAllocator" ::: Ptr AllocationCallbacks)
-> ("pSurface" ::: Ptr SurfaceKHR)
-> IO Result
vkCreateMacOSSurfaceMVK' (Instance -> Ptr Instance_T
instanceHandle (Instance
instance')) "pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK
pCreateInfo "pAllocator" ::: Ptr AllocationCallbacks
pAllocator ("pSurface" ::: Ptr SurfaceKHR
pPSurface)
IO () -> ContT SurfaceKHR IO ()
forall (t :: (* -> *) -> * -> *) (m :: * -> *) a.
(MonadTrans t, Monad m) =>
m a -> t m a
lift (IO () -> ContT SurfaceKHR IO ())
-> IO () -> ContT SurfaceKHR IO ()
forall a b. (a -> b) -> a -> b
$ Bool -> IO () -> IO ()
forall (f :: * -> *). Applicative f => Bool -> f () -> f ()
when (Result
r Result -> Result -> Bool
forall a. Ord a => a -> a -> Bool
< Result
SUCCESS) (VulkanException -> IO ()
forall e a. Exception e => e -> IO a
throwIO (Result -> VulkanException
VulkanException Result
r))
SurfaceKHR
pSurface <- IO SurfaceKHR -> ContT SurfaceKHR IO SurfaceKHR
forall (t :: (* -> *) -> * -> *) (m :: * -> *) a.
(MonadTrans t, Monad m) =>
m a -> t m a
lift (IO SurfaceKHR -> ContT SurfaceKHR IO SurfaceKHR)
-> IO SurfaceKHR -> ContT SurfaceKHR IO SurfaceKHR
forall a b. (a -> b) -> a -> b
$ ("pSurface" ::: Ptr SurfaceKHR) -> IO SurfaceKHR
forall a. Storable a => Ptr a -> IO a
peek @SurfaceKHR "pSurface" ::: Ptr SurfaceKHR
pPSurface
SurfaceKHR -> ContT SurfaceKHR IO SurfaceKHR
forall (f :: * -> *) a. Applicative f => a -> f a
pure (SurfaceKHR -> ContT SurfaceKHR IO SurfaceKHR)
-> SurfaceKHR -> ContT SurfaceKHR IO SurfaceKHR
forall a b. (a -> b) -> a -> b
$ (SurfaceKHR
pSurface)
data MacOSSurfaceCreateInfoMVK = MacOSSurfaceCreateInfoMVK
{
MacOSSurfaceCreateInfoMVK -> MacOSSurfaceCreateFlagsMVK
flags :: MacOSSurfaceCreateFlagsMVK
,
MacOSSurfaceCreateInfoMVK -> Ptr ()
view :: Ptr ()
}
deriving (Typeable)
deriving instance Show MacOSSurfaceCreateInfoMVK
instance ToCStruct MacOSSurfaceCreateInfoMVK where
withCStruct :: MacOSSurfaceCreateInfoMVK
-> (("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK) -> IO b)
-> IO b
withCStruct x :: MacOSSurfaceCreateInfoMVK
x f :: ("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK) -> IO b
f = Int
-> Int
-> (("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK) -> IO b)
-> IO b
forall a b. Int -> Int -> (Ptr a -> IO b) -> IO b
allocaBytesAligned 32 8 ((("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK) -> IO b)
-> IO b)
-> (("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK) -> IO b)
-> IO b
forall a b. (a -> b) -> a -> b
$ \p :: "pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK
p -> ("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK)
-> MacOSSurfaceCreateInfoMVK -> IO b -> IO b
forall a b. ToCStruct a => Ptr a -> a -> IO b -> IO b
pokeCStruct "pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK
p MacOSSurfaceCreateInfoMVK
x (("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK) -> IO b
f "pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK
p)
pokeCStruct :: ("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK)
-> MacOSSurfaceCreateInfoMVK -> IO b -> IO b
pokeCStruct p :: "pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK
p MacOSSurfaceCreateInfoMVK{..} f :: IO b
f = do
Ptr StructureType -> StructureType -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK
p ("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK)
-> Int -> Ptr StructureType
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` 0 :: Ptr StructureType)) (StructureType
STRUCTURE_TYPE_MACOS_SURFACE_CREATE_INFO_MVK)
Ptr (Ptr ()) -> Ptr () -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK
p ("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK)
-> Int -> Ptr (Ptr ())
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` 8 :: Ptr (Ptr ()))) (Ptr ()
forall a. Ptr a
nullPtr)
Ptr MacOSSurfaceCreateFlagsMVK
-> MacOSSurfaceCreateFlagsMVK -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK
p ("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK)
-> Int -> Ptr MacOSSurfaceCreateFlagsMVK
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` 16 :: Ptr MacOSSurfaceCreateFlagsMVK)) (MacOSSurfaceCreateFlagsMVK
flags)
Ptr (Ptr ()) -> Ptr () -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK
p ("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK)
-> Int -> Ptr (Ptr ())
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` 24 :: Ptr (Ptr ()))) (Ptr ()
view)
IO b
f
cStructSize :: Int
cStructSize = 32
cStructAlignment :: Int
cStructAlignment = 8
pokeZeroCStruct :: ("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK) -> IO b -> IO b
pokeZeroCStruct p :: "pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK
p f :: IO b
f = do
Ptr StructureType -> StructureType -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK
p ("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK)
-> Int -> Ptr StructureType
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` 0 :: Ptr StructureType)) (StructureType
STRUCTURE_TYPE_MACOS_SURFACE_CREATE_INFO_MVK)
Ptr (Ptr ()) -> Ptr () -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK
p ("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK)
-> Int -> Ptr (Ptr ())
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` 8 :: Ptr (Ptr ()))) (Ptr ()
forall a. Ptr a
nullPtr)
Ptr (Ptr ()) -> Ptr () -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK
p ("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK)
-> Int -> Ptr (Ptr ())
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` 24 :: Ptr (Ptr ()))) (Ptr ()
forall a. Zero a => a
zero)
IO b
f
instance FromCStruct MacOSSurfaceCreateInfoMVK where
peekCStruct :: ("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK)
-> IO MacOSSurfaceCreateInfoMVK
peekCStruct p :: "pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK
p = do
MacOSSurfaceCreateFlagsMVK
flags <- Ptr MacOSSurfaceCreateFlagsMVK -> IO MacOSSurfaceCreateFlagsMVK
forall a. Storable a => Ptr a -> IO a
peek @MacOSSurfaceCreateFlagsMVK (("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK
p ("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK)
-> Int -> Ptr MacOSSurfaceCreateFlagsMVK
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` 16 :: Ptr MacOSSurfaceCreateFlagsMVK))
Ptr ()
pView <- Ptr (Ptr ()) -> IO (Ptr ())
forall a. Storable a => Ptr a -> IO a
peek @(Ptr ()) (("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK
p ("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK)
-> Int -> Ptr (Ptr ())
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` 24 :: Ptr (Ptr ())))
MacOSSurfaceCreateInfoMVK -> IO MacOSSurfaceCreateInfoMVK
forall (f :: * -> *) a. Applicative f => a -> f a
pure (MacOSSurfaceCreateInfoMVK -> IO MacOSSurfaceCreateInfoMVK)
-> MacOSSurfaceCreateInfoMVK -> IO MacOSSurfaceCreateInfoMVK
forall a b. (a -> b) -> a -> b
$ MacOSSurfaceCreateFlagsMVK -> Ptr () -> MacOSSurfaceCreateInfoMVK
MacOSSurfaceCreateInfoMVK
MacOSSurfaceCreateFlagsMVK
flags Ptr ()
pView
instance Storable MacOSSurfaceCreateInfoMVK where
sizeOf :: MacOSSurfaceCreateInfoMVK -> Int
sizeOf ~MacOSSurfaceCreateInfoMVK
_ = 32
alignment :: MacOSSurfaceCreateInfoMVK -> Int
alignment ~MacOSSurfaceCreateInfoMVK
_ = 8
peek :: ("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK)
-> IO MacOSSurfaceCreateInfoMVK
peek = ("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK)
-> IO MacOSSurfaceCreateInfoMVK
forall a. FromCStruct a => Ptr a -> IO a
peekCStruct
poke :: ("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK)
-> MacOSSurfaceCreateInfoMVK -> IO ()
poke ptr :: "pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK
ptr poked :: MacOSSurfaceCreateInfoMVK
poked = ("pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK)
-> MacOSSurfaceCreateInfoMVK -> IO () -> IO ()
forall a b. ToCStruct a => Ptr a -> a -> IO b -> IO b
pokeCStruct "pCreateInfo" ::: Ptr MacOSSurfaceCreateInfoMVK
ptr MacOSSurfaceCreateInfoMVK
poked (() -> IO ()
forall (f :: * -> *) a. Applicative f => a -> f a
pure ())
instance Zero MacOSSurfaceCreateInfoMVK where
zero :: MacOSSurfaceCreateInfoMVK
zero = MacOSSurfaceCreateFlagsMVK -> Ptr () -> MacOSSurfaceCreateInfoMVK
MacOSSurfaceCreateInfoMVK
MacOSSurfaceCreateFlagsMVK
forall a. Zero a => a
zero
Ptr ()
forall a. Zero a => a
zero
newtype MacOSSurfaceCreateFlagsMVK = MacOSSurfaceCreateFlagsMVK Flags
deriving newtype (MacOSSurfaceCreateFlagsMVK -> MacOSSurfaceCreateFlagsMVK -> Bool
(MacOSSurfaceCreateFlagsMVK -> MacOSSurfaceCreateFlagsMVK -> Bool)
-> (MacOSSurfaceCreateFlagsMVK
-> MacOSSurfaceCreateFlagsMVK -> Bool)
-> Eq MacOSSurfaceCreateFlagsMVK
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MacOSSurfaceCreateFlagsMVK -> MacOSSurfaceCreateFlagsMVK -> Bool
$c/= :: MacOSSurfaceCreateFlagsMVK -> MacOSSurfaceCreateFlagsMVK -> Bool
== :: MacOSSurfaceCreateFlagsMVK -> MacOSSurfaceCreateFlagsMVK -> Bool
$c== :: MacOSSurfaceCreateFlagsMVK -> MacOSSurfaceCreateFlagsMVK -> Bool
Eq, Eq MacOSSurfaceCreateFlagsMVK
Eq MacOSSurfaceCreateFlagsMVK =>
(MacOSSurfaceCreateFlagsMVK
-> MacOSSurfaceCreateFlagsMVK -> Ordering)
-> (MacOSSurfaceCreateFlagsMVK
-> MacOSSurfaceCreateFlagsMVK -> Bool)
-> (MacOSSurfaceCreateFlagsMVK
-> MacOSSurfaceCreateFlagsMVK -> Bool)
-> (MacOSSurfaceCreateFlagsMVK
-> MacOSSurfaceCreateFlagsMVK -> Bool)
-> (MacOSSurfaceCreateFlagsMVK
-> MacOSSurfaceCreateFlagsMVK -> Bool)
-> (MacOSSurfaceCreateFlagsMVK
-> MacOSSurfaceCreateFlagsMVK -> MacOSSurfaceCreateFlagsMVK)
-> (MacOSSurfaceCreateFlagsMVK
-> MacOSSurfaceCreateFlagsMVK -> MacOSSurfaceCreateFlagsMVK)
-> Ord MacOSSurfaceCreateFlagsMVK
MacOSSurfaceCreateFlagsMVK -> MacOSSurfaceCreateFlagsMVK -> Bool
MacOSSurfaceCreateFlagsMVK
-> MacOSSurfaceCreateFlagsMVK -> Ordering
MacOSSurfaceCreateFlagsMVK
-> MacOSSurfaceCreateFlagsMVK -> MacOSSurfaceCreateFlagsMVK
forall a.
Eq a =>
(a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: MacOSSurfaceCreateFlagsMVK
-> MacOSSurfaceCreateFlagsMVK -> MacOSSurfaceCreateFlagsMVK
$cmin :: MacOSSurfaceCreateFlagsMVK
-> MacOSSurfaceCreateFlagsMVK -> MacOSSurfaceCreateFlagsMVK
max :: MacOSSurfaceCreateFlagsMVK
-> MacOSSurfaceCreateFlagsMVK -> MacOSSurfaceCreateFlagsMVK
$cmax :: MacOSSurfaceCreateFlagsMVK
-> MacOSSurfaceCreateFlagsMVK -> MacOSSurfaceCreateFlagsMVK
>= :: MacOSSurfaceCreateFlagsMVK -> MacOSSurfaceCreateFlagsMVK -> Bool
$c>= :: MacOSSurfaceCreateFlagsMVK -> MacOSSurfaceCreateFlagsMVK -> Bool
> :: MacOSSurfaceCreateFlagsMVK -> MacOSSurfaceCreateFlagsMVK -> Bool
$c> :: MacOSSurfaceCreateFlagsMVK -> MacOSSurfaceCreateFlagsMVK -> Bool
<= :: MacOSSurfaceCreateFlagsMVK -> MacOSSurfaceCreateFlagsMVK -> Bool
$c<= :: MacOSSurfaceCreateFlagsMVK -> MacOSSurfaceCreateFlagsMVK -> Bool
< :: MacOSSurfaceCreateFlagsMVK -> MacOSSurfaceCreateFlagsMVK -> Bool
$c< :: MacOSSurfaceCreateFlagsMVK -> MacOSSurfaceCreateFlagsMVK -> Bool
compare :: MacOSSurfaceCreateFlagsMVK
-> MacOSSurfaceCreateFlagsMVK -> Ordering
$ccompare :: MacOSSurfaceCreateFlagsMVK
-> MacOSSurfaceCreateFlagsMVK -> Ordering
$cp1Ord :: Eq MacOSSurfaceCreateFlagsMVK
Ord, Ptr b -> Int -> IO MacOSSurfaceCreateFlagsMVK
Ptr b -> Int -> MacOSSurfaceCreateFlagsMVK -> IO ()
Ptr MacOSSurfaceCreateFlagsMVK -> IO MacOSSurfaceCreateFlagsMVK
Ptr MacOSSurfaceCreateFlagsMVK
-> Int -> IO MacOSSurfaceCreateFlagsMVK
Ptr MacOSSurfaceCreateFlagsMVK
-> Int -> MacOSSurfaceCreateFlagsMVK -> IO ()
Ptr MacOSSurfaceCreateFlagsMVK
-> MacOSSurfaceCreateFlagsMVK -> IO ()
MacOSSurfaceCreateFlagsMVK -> Int
(MacOSSurfaceCreateFlagsMVK -> Int)
-> (MacOSSurfaceCreateFlagsMVK -> Int)
-> (Ptr MacOSSurfaceCreateFlagsMVK
-> Int -> IO MacOSSurfaceCreateFlagsMVK)
-> (Ptr MacOSSurfaceCreateFlagsMVK
-> Int -> MacOSSurfaceCreateFlagsMVK -> IO ())
-> (forall b. Ptr b -> Int -> IO MacOSSurfaceCreateFlagsMVK)
-> (forall b. Ptr b -> Int -> MacOSSurfaceCreateFlagsMVK -> IO ())
-> (Ptr MacOSSurfaceCreateFlagsMVK
-> IO MacOSSurfaceCreateFlagsMVK)
-> (Ptr MacOSSurfaceCreateFlagsMVK
-> MacOSSurfaceCreateFlagsMVK -> IO ())
-> Storable MacOSSurfaceCreateFlagsMVK
forall b. Ptr b -> Int -> IO MacOSSurfaceCreateFlagsMVK
forall b. Ptr b -> Int -> MacOSSurfaceCreateFlagsMVK -> IO ()
forall a.
(a -> Int)
-> (a -> Int)
-> (Ptr a -> Int -> IO a)
-> (Ptr a -> Int -> a -> IO ())
-> (forall b. Ptr b -> Int -> IO a)
-> (forall b. Ptr b -> Int -> a -> IO ())
-> (Ptr a -> IO a)
-> (Ptr a -> a -> IO ())
-> Storable a
poke :: Ptr MacOSSurfaceCreateFlagsMVK
-> MacOSSurfaceCreateFlagsMVK -> IO ()
$cpoke :: Ptr MacOSSurfaceCreateFlagsMVK
-> MacOSSurfaceCreateFlagsMVK -> IO ()
peek :: Ptr MacOSSurfaceCreateFlagsMVK -> IO MacOSSurfaceCreateFlagsMVK
$cpeek :: Ptr MacOSSurfaceCreateFlagsMVK -> IO MacOSSurfaceCreateFlagsMVK
pokeByteOff :: Ptr b -> Int -> MacOSSurfaceCreateFlagsMVK -> IO ()
$cpokeByteOff :: forall b. Ptr b -> Int -> MacOSSurfaceCreateFlagsMVK -> IO ()
peekByteOff :: Ptr b -> Int -> IO MacOSSurfaceCreateFlagsMVK
$cpeekByteOff :: forall b. Ptr b -> Int -> IO MacOSSurfaceCreateFlagsMVK
pokeElemOff :: Ptr MacOSSurfaceCreateFlagsMVK
-> Int -> MacOSSurfaceCreateFlagsMVK -> IO ()
$cpokeElemOff :: Ptr MacOSSurfaceCreateFlagsMVK
-> Int -> MacOSSurfaceCreateFlagsMVK -> IO ()
peekElemOff :: Ptr MacOSSurfaceCreateFlagsMVK
-> Int -> IO MacOSSurfaceCreateFlagsMVK
$cpeekElemOff :: Ptr MacOSSurfaceCreateFlagsMVK
-> Int -> IO MacOSSurfaceCreateFlagsMVK
alignment :: MacOSSurfaceCreateFlagsMVK -> Int
$calignment :: MacOSSurfaceCreateFlagsMVK -> Int
sizeOf :: MacOSSurfaceCreateFlagsMVK -> Int
$csizeOf :: MacOSSurfaceCreateFlagsMVK -> Int
Storable, MacOSSurfaceCreateFlagsMVK
MacOSSurfaceCreateFlagsMVK -> Zero MacOSSurfaceCreateFlagsMVK
forall a. a -> Zero a
zero :: MacOSSurfaceCreateFlagsMVK
$czero :: MacOSSurfaceCreateFlagsMVK
Zero, Eq MacOSSurfaceCreateFlagsMVK
MacOSSurfaceCreateFlagsMVK
Eq MacOSSurfaceCreateFlagsMVK =>
(MacOSSurfaceCreateFlagsMVK
-> MacOSSurfaceCreateFlagsMVK -> MacOSSurfaceCreateFlagsMVK)
-> (MacOSSurfaceCreateFlagsMVK
-> MacOSSurfaceCreateFlagsMVK -> MacOSSurfaceCreateFlagsMVK)
-> (MacOSSurfaceCreateFlagsMVK
-> MacOSSurfaceCreateFlagsMVK -> MacOSSurfaceCreateFlagsMVK)
-> (MacOSSurfaceCreateFlagsMVK -> MacOSSurfaceCreateFlagsMVK)
-> (MacOSSurfaceCreateFlagsMVK
-> Int -> MacOSSurfaceCreateFlagsMVK)
-> (MacOSSurfaceCreateFlagsMVK
-> Int -> MacOSSurfaceCreateFlagsMVK)
-> MacOSSurfaceCreateFlagsMVK
-> (Int -> MacOSSurfaceCreateFlagsMVK)
-> (MacOSSurfaceCreateFlagsMVK
-> Int -> MacOSSurfaceCreateFlagsMVK)
-> (MacOSSurfaceCreateFlagsMVK
-> Int -> MacOSSurfaceCreateFlagsMVK)
-> (MacOSSurfaceCreateFlagsMVK
-> Int -> MacOSSurfaceCreateFlagsMVK)
-> (MacOSSurfaceCreateFlagsMVK -> Int -> Bool)
-> (MacOSSurfaceCreateFlagsMVK -> Maybe Int)
-> (MacOSSurfaceCreateFlagsMVK -> Int)
-> (MacOSSurfaceCreateFlagsMVK -> Bool)
-> (MacOSSurfaceCreateFlagsMVK
-> Int -> MacOSSurfaceCreateFlagsMVK)
-> (MacOSSurfaceCreateFlagsMVK
-> Int -> MacOSSurfaceCreateFlagsMVK)
-> (MacOSSurfaceCreateFlagsMVK
-> Int -> MacOSSurfaceCreateFlagsMVK)
-> (MacOSSurfaceCreateFlagsMVK
-> Int -> MacOSSurfaceCreateFlagsMVK)
-> (MacOSSurfaceCreateFlagsMVK
-> Int -> MacOSSurfaceCreateFlagsMVK)
-> (MacOSSurfaceCreateFlagsMVK
-> Int -> MacOSSurfaceCreateFlagsMVK)
-> (MacOSSurfaceCreateFlagsMVK -> Int)
-> Bits MacOSSurfaceCreateFlagsMVK
Int -> MacOSSurfaceCreateFlagsMVK
MacOSSurfaceCreateFlagsMVK -> Bool
MacOSSurfaceCreateFlagsMVK -> Int
MacOSSurfaceCreateFlagsMVK -> Maybe Int
MacOSSurfaceCreateFlagsMVK -> MacOSSurfaceCreateFlagsMVK
MacOSSurfaceCreateFlagsMVK -> Int -> Bool
MacOSSurfaceCreateFlagsMVK -> Int -> MacOSSurfaceCreateFlagsMVK
MacOSSurfaceCreateFlagsMVK
-> MacOSSurfaceCreateFlagsMVK -> MacOSSurfaceCreateFlagsMVK
forall a.
Eq a =>
(a -> a -> a)
-> (a -> a -> a)
-> (a -> a -> a)
-> (a -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> a
-> (Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> Bool)
-> (a -> Maybe Int)
-> (a -> Int)
-> (a -> Bool)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int)
-> Bits a
popCount :: MacOSSurfaceCreateFlagsMVK -> Int
$cpopCount :: MacOSSurfaceCreateFlagsMVK -> Int
rotateR :: MacOSSurfaceCreateFlagsMVK -> Int -> MacOSSurfaceCreateFlagsMVK
$crotateR :: MacOSSurfaceCreateFlagsMVK -> Int -> MacOSSurfaceCreateFlagsMVK
rotateL :: MacOSSurfaceCreateFlagsMVK -> Int -> MacOSSurfaceCreateFlagsMVK
$crotateL :: MacOSSurfaceCreateFlagsMVK -> Int -> MacOSSurfaceCreateFlagsMVK
unsafeShiftR :: MacOSSurfaceCreateFlagsMVK -> Int -> MacOSSurfaceCreateFlagsMVK
$cunsafeShiftR :: MacOSSurfaceCreateFlagsMVK -> Int -> MacOSSurfaceCreateFlagsMVK
shiftR :: MacOSSurfaceCreateFlagsMVK -> Int -> MacOSSurfaceCreateFlagsMVK
$cshiftR :: MacOSSurfaceCreateFlagsMVK -> Int -> MacOSSurfaceCreateFlagsMVK
unsafeShiftL :: MacOSSurfaceCreateFlagsMVK -> Int -> MacOSSurfaceCreateFlagsMVK
$cunsafeShiftL :: MacOSSurfaceCreateFlagsMVK -> Int -> MacOSSurfaceCreateFlagsMVK
shiftL :: MacOSSurfaceCreateFlagsMVK -> Int -> MacOSSurfaceCreateFlagsMVK
$cshiftL :: MacOSSurfaceCreateFlagsMVK -> Int -> MacOSSurfaceCreateFlagsMVK
isSigned :: MacOSSurfaceCreateFlagsMVK -> Bool
$cisSigned :: MacOSSurfaceCreateFlagsMVK -> Bool
bitSize :: MacOSSurfaceCreateFlagsMVK -> Int
$cbitSize :: MacOSSurfaceCreateFlagsMVK -> Int
bitSizeMaybe :: MacOSSurfaceCreateFlagsMVK -> Maybe Int
$cbitSizeMaybe :: MacOSSurfaceCreateFlagsMVK -> Maybe Int
testBit :: MacOSSurfaceCreateFlagsMVK -> Int -> Bool
$ctestBit :: MacOSSurfaceCreateFlagsMVK -> Int -> Bool
complementBit :: MacOSSurfaceCreateFlagsMVK -> Int -> MacOSSurfaceCreateFlagsMVK
$ccomplementBit :: MacOSSurfaceCreateFlagsMVK -> Int -> MacOSSurfaceCreateFlagsMVK
clearBit :: MacOSSurfaceCreateFlagsMVK -> Int -> MacOSSurfaceCreateFlagsMVK
$cclearBit :: MacOSSurfaceCreateFlagsMVK -> Int -> MacOSSurfaceCreateFlagsMVK
setBit :: MacOSSurfaceCreateFlagsMVK -> Int -> MacOSSurfaceCreateFlagsMVK
$csetBit :: MacOSSurfaceCreateFlagsMVK -> Int -> MacOSSurfaceCreateFlagsMVK
bit :: Int -> MacOSSurfaceCreateFlagsMVK
$cbit :: Int -> MacOSSurfaceCreateFlagsMVK
zeroBits :: MacOSSurfaceCreateFlagsMVK
$czeroBits :: MacOSSurfaceCreateFlagsMVK
rotate :: MacOSSurfaceCreateFlagsMVK -> Int -> MacOSSurfaceCreateFlagsMVK
$crotate :: MacOSSurfaceCreateFlagsMVK -> Int -> MacOSSurfaceCreateFlagsMVK
shift :: MacOSSurfaceCreateFlagsMVK -> Int -> MacOSSurfaceCreateFlagsMVK
$cshift :: MacOSSurfaceCreateFlagsMVK -> Int -> MacOSSurfaceCreateFlagsMVK
complement :: MacOSSurfaceCreateFlagsMVK -> MacOSSurfaceCreateFlagsMVK
$ccomplement :: MacOSSurfaceCreateFlagsMVK -> MacOSSurfaceCreateFlagsMVK
xor :: MacOSSurfaceCreateFlagsMVK
-> MacOSSurfaceCreateFlagsMVK -> MacOSSurfaceCreateFlagsMVK
$cxor :: MacOSSurfaceCreateFlagsMVK
-> MacOSSurfaceCreateFlagsMVK -> MacOSSurfaceCreateFlagsMVK
.|. :: MacOSSurfaceCreateFlagsMVK
-> MacOSSurfaceCreateFlagsMVK -> MacOSSurfaceCreateFlagsMVK
$c.|. :: MacOSSurfaceCreateFlagsMVK
-> MacOSSurfaceCreateFlagsMVK -> MacOSSurfaceCreateFlagsMVK
.&. :: MacOSSurfaceCreateFlagsMVK
-> MacOSSurfaceCreateFlagsMVK -> MacOSSurfaceCreateFlagsMVK
$c.&. :: MacOSSurfaceCreateFlagsMVK
-> MacOSSurfaceCreateFlagsMVK -> MacOSSurfaceCreateFlagsMVK
$cp1Bits :: Eq MacOSSurfaceCreateFlagsMVK
Bits)
instance Show MacOSSurfaceCreateFlagsMVK where
showsPrec :: Int -> MacOSSurfaceCreateFlagsMVK -> ShowS
showsPrec p :: Int
p = \case
MacOSSurfaceCreateFlagsMVK x :: Flags
x -> Bool -> ShowS -> ShowS
showParen (Int
p Int -> Int -> Bool
forall a. Ord a => a -> a -> Bool
>= 11) (String -> ShowS
showString "MacOSSurfaceCreateFlagsMVK 0x" ShowS -> ShowS -> ShowS
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Flags -> ShowS
forall a. (Integral a, Show a) => a -> ShowS
showHex Flags
x)
instance Read MacOSSurfaceCreateFlagsMVK where
readPrec :: ReadPrec MacOSSurfaceCreateFlagsMVK
readPrec = ReadPrec MacOSSurfaceCreateFlagsMVK
-> ReadPrec MacOSSurfaceCreateFlagsMVK
forall a. ReadPrec a -> ReadPrec a
parens ([(String, ReadPrec MacOSSurfaceCreateFlagsMVK)]
-> ReadPrec MacOSSurfaceCreateFlagsMVK
forall a. [(String, ReadPrec a)] -> ReadPrec a
choose []
ReadPrec MacOSSurfaceCreateFlagsMVK
-> ReadPrec MacOSSurfaceCreateFlagsMVK
-> ReadPrec MacOSSurfaceCreateFlagsMVK
forall a. ReadPrec a -> ReadPrec a -> ReadPrec a
+++
Int
-> ReadPrec MacOSSurfaceCreateFlagsMVK
-> ReadPrec MacOSSurfaceCreateFlagsMVK
forall a. Int -> ReadPrec a -> ReadPrec a
prec 10 (do
Lexeme -> ReadPrec ()
expectP (String -> Lexeme
Ident "MacOSSurfaceCreateFlagsMVK")
Flags
v <- ReadPrec Flags -> ReadPrec Flags
forall a. ReadPrec a -> ReadPrec a
step ReadPrec Flags
forall a. Read a => ReadPrec a
readPrec
MacOSSurfaceCreateFlagsMVK -> ReadPrec MacOSSurfaceCreateFlagsMVK
forall (f :: * -> *) a. Applicative f => a -> f a
pure (Flags -> MacOSSurfaceCreateFlagsMVK
MacOSSurfaceCreateFlagsMVK Flags
v)))
type MVK_MACOS_SURFACE_SPEC_VERSION = 2
pattern MVK_MACOS_SURFACE_SPEC_VERSION :: forall a . Integral a => a
pattern $bMVK_MACOS_SURFACE_SPEC_VERSION :: a
$mMVK_MACOS_SURFACE_SPEC_VERSION :: forall r a. Integral a => a -> (Void# -> r) -> (Void# -> r) -> r
MVK_MACOS_SURFACE_SPEC_VERSION = 2
type MVK_MACOS_SURFACE_EXTENSION_NAME = "VK_MVK_macos_surface"
pattern MVK_MACOS_SURFACE_EXTENSION_NAME :: forall a . (Eq a, IsString a) => a
pattern $bMVK_MACOS_SURFACE_EXTENSION_NAME :: a
$mMVK_MACOS_SURFACE_EXTENSION_NAME :: forall r a.
(Eq a, IsString a) =>
a -> (Void# -> r) -> (Void# -> r) -> r
MVK_MACOS_SURFACE_EXTENSION_NAME = "VK_MVK_macos_surface"