{-# language CPP #-}
module Vulkan.Extensions.VK_MVK_ios_surface ( createIOSSurfaceMVK
, IOSSurfaceCreateInfoMVK(..)
, IOSSurfaceCreateFlagsMVK(..)
, MVK_IOS_SURFACE_SPEC_VERSION
, pattern MVK_IOS_SURFACE_SPEC_VERSION
, MVK_IOS_SURFACE_EXTENSION_NAME
, pattern MVK_IOS_SURFACE_EXTENSION_NAME
, SurfaceKHR(..)
) where
import Vulkan.Internal.Utils (enumReadPrec)
import Vulkan.Internal.Utils (enumShowsPrec)
import Vulkan.Internal.Utils (traceAroundEvent)
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.Show (showString)
import Numeric (showHex)
import Control.Monad.Trans.Class (lift)
import Control.Monad.Trans.Cont (evalContT)
import Vulkan.CStruct (FromCStruct)
import Vulkan.CStruct (FromCStruct(..))
import Vulkan.CStruct (ToCStruct)
import Vulkan.CStruct (ToCStruct(..))
import Vulkan.Zero (Zero)
import Vulkan.Zero (Zero(..))
import Control.Monad.IO.Class (MonadIO)
import Data.Bits (Bits)
import Data.Bits (FiniteBits)
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.Generics (Generic)
import GHC.IO.Exception (IOErrorType(..))
import GHC.IO.Exception (IOException(..))
import Foreign.Ptr (FunPtr)
import Foreign.Ptr (Ptr)
import GHC.Read (Read(readPrec))
import GHC.Show (Show(showsPrec))
import Data.Kind (Type)
import Control.Monad.Trans.Cont (ContT(..))
import Vulkan.NamedType ((:::))
import Vulkan.Core10.AllocationCallbacks (AllocationCallbacks)
import Vulkan.Core10.FundamentalTypes (Flags)
import Vulkan.Core10.Handles (Instance)
import Vulkan.Core10.Handles (Instance(..))
import Vulkan.Dynamic (InstanceCmds(pVkCreateIOSSurfaceMVK))
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.Exception (VulkanException(..))
import Vulkan.Core10.Enums.StructureType (StructureType(STRUCTURE_TYPE_IOS_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" mkVkCreateIOSSurfaceMVK
:: FunPtr (Ptr Instance_T -> Ptr IOSSurfaceCreateInfoMVK -> Ptr AllocationCallbacks -> Ptr SurfaceKHR -> IO Result) -> Ptr Instance_T -> Ptr IOSSurfaceCreateInfoMVK -> Ptr AllocationCallbacks -> Ptr SurfaceKHR -> IO Result
createIOSSurfaceMVK :: forall io
. (MonadIO io)
=>
Instance
->
IOSSurfaceCreateInfoMVK
->
("allocator" ::: Maybe AllocationCallbacks)
-> io (SurfaceKHR)
createIOSSurfaceMVK :: Instance
-> IOSSurfaceCreateInfoMVK
-> ("allocator" ::: Maybe AllocationCallbacks)
-> io SurfaceKHR
createIOSSurfaceMVK instance' :: Instance
instance' createInfo :: IOSSurfaceCreateInfoMVK
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 vkCreateIOSSurfaceMVKPtr :: FunPtr
(Ptr Instance_T
-> ("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK)
-> ("pAllocator" ::: Ptr AllocationCallbacks)
-> ("pSurface" ::: Ptr SurfaceKHR)
-> IO Result)
vkCreateIOSSurfaceMVKPtr = InstanceCmds
-> FunPtr
(Ptr Instance_T
-> ("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK)
-> ("pAllocator" ::: Ptr AllocationCallbacks)
-> ("pSurface" ::: Ptr SurfaceKHR)
-> IO Result)
pVkCreateIOSSurfaceMVK (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 IOSSurfaceCreateInfoMVK)
-> ("pAllocator" ::: Ptr AllocationCallbacks)
-> ("pSurface" ::: Ptr SurfaceKHR)
-> IO Result)
vkCreateIOSSurfaceMVKPtr FunPtr
(Ptr Instance_T
-> ("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK)
-> ("pAllocator" ::: Ptr AllocationCallbacks)
-> ("pSurface" ::: Ptr SurfaceKHR)
-> IO Result)
-> FunPtr
(Ptr Instance_T
-> ("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK)
-> ("pAllocator" ::: Ptr AllocationCallbacks)
-> ("pSurface" ::: Ptr SurfaceKHR)
-> IO Result)
-> Bool
forall a. Eq a => a -> a -> Bool
/= FunPtr
(Ptr Instance_T
-> ("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK)
-> ("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 vkCreateIOSSurfaceMVK is null" Maybe CInt
forall a. Maybe a
Nothing Maybe String
forall a. Maybe a
Nothing
let vkCreateIOSSurfaceMVK' :: Ptr Instance_T
-> ("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK)
-> ("pAllocator" ::: Ptr AllocationCallbacks)
-> ("pSurface" ::: Ptr SurfaceKHR)
-> IO Result
vkCreateIOSSurfaceMVK' = FunPtr
(Ptr Instance_T
-> ("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK)
-> ("pAllocator" ::: Ptr AllocationCallbacks)
-> ("pSurface" ::: Ptr SurfaceKHR)
-> IO Result)
-> Ptr Instance_T
-> ("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK)
-> ("pAllocator" ::: Ptr AllocationCallbacks)
-> ("pSurface" ::: Ptr SurfaceKHR)
-> IO Result
mkVkCreateIOSSurfaceMVK FunPtr
(Ptr Instance_T
-> ("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK)
-> ("pAllocator" ::: Ptr AllocationCallbacks)
-> ("pSurface" ::: Ptr SurfaceKHR)
-> IO Result)
vkCreateIOSSurfaceMVKPtr
"pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK
pCreateInfo <- ((("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK) -> IO SurfaceKHR)
-> IO SurfaceKHR)
-> ContT
SurfaceKHR IO ("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK)
forall k (r :: k) (m :: k -> *) a.
((a -> m r) -> m r) -> ContT r m a
ContT (((("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK)
-> IO SurfaceKHR)
-> IO SurfaceKHR)
-> ContT
SurfaceKHR IO ("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK))
-> ((("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK)
-> IO SurfaceKHR)
-> IO SurfaceKHR)
-> ContT
SurfaceKHR IO ("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK)
forall a b. (a -> b) -> a -> b
$ IOSSurfaceCreateInfoMVK
-> (("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK)
-> IO SurfaceKHR)
-> IO SurfaceKHR
forall a b. ToCStruct a => a -> (Ptr a -> IO b) -> IO b
withCStruct (IOSSurfaceCreateInfoMVK
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
$ String -> IO Result -> IO Result
forall a. String -> IO a -> IO a
traceAroundEvent "vkCreateIOSSurfaceMVK" (Ptr Instance_T
-> ("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK)
-> ("pAllocator" ::: Ptr AllocationCallbacks)
-> ("pSurface" ::: Ptr SurfaceKHR)
-> IO Result
vkCreateIOSSurfaceMVK' (Instance -> Ptr Instance_T
instanceHandle (Instance
instance')) "pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK
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 IOSSurfaceCreateInfoMVK = IOSSurfaceCreateInfoMVK
{
IOSSurfaceCreateInfoMVK -> IOSSurfaceCreateFlagsMVK
flags :: IOSSurfaceCreateFlagsMVK
,
IOSSurfaceCreateInfoMVK -> Ptr ()
view :: Ptr ()
}
deriving (Typeable)
#if defined(GENERIC_INSTANCES)
deriving instance Generic (IOSSurfaceCreateInfoMVK)
#endif
deriving instance Show IOSSurfaceCreateInfoMVK
instance ToCStruct IOSSurfaceCreateInfoMVK where
withCStruct :: IOSSurfaceCreateInfoMVK
-> (("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK) -> IO b)
-> IO b
withCStruct x :: IOSSurfaceCreateInfoMVK
x f :: ("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK) -> IO b
f = Int
-> Int
-> (("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK) -> IO b)
-> IO b
forall a b. Int -> Int -> (Ptr a -> IO b) -> IO b
allocaBytesAligned 32 8 ((("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK) -> IO b) -> IO b)
-> (("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK) -> IO b)
-> IO b
forall a b. (a -> b) -> a -> b
$ \p :: "pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK
p -> ("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK)
-> IOSSurfaceCreateInfoMVK -> IO b -> IO b
forall a b. ToCStruct a => Ptr a -> a -> IO b -> IO b
pokeCStruct "pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK
p IOSSurfaceCreateInfoMVK
x (("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK) -> IO b
f "pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK
p)
pokeCStruct :: ("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK)
-> IOSSurfaceCreateInfoMVK -> IO b -> IO b
pokeCStruct p :: "pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK
p IOSSurfaceCreateInfoMVK{..} f :: IO b
f = do
Ptr StructureType -> StructureType -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK
p ("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK)
-> Int -> Ptr StructureType
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` 0 :: Ptr StructureType)) (StructureType
STRUCTURE_TYPE_IOS_SURFACE_CREATE_INFO_MVK)
Ptr (Ptr ()) -> Ptr () -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK
p ("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK)
-> Int -> Ptr (Ptr ())
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` 8 :: Ptr (Ptr ()))) (Ptr ()
forall a. Ptr a
nullPtr)
Ptr IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK
p ("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK)
-> Int -> Ptr IOSSurfaceCreateFlagsMVK
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` 16 :: Ptr IOSSurfaceCreateFlagsMVK)) (IOSSurfaceCreateFlagsMVK
flags)
Ptr (Ptr ()) -> Ptr () -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK
p ("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK)
-> 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 IOSSurfaceCreateInfoMVK) -> IO b -> IO b
pokeZeroCStruct p :: "pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK
p f :: IO b
f = do
Ptr StructureType -> StructureType -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK
p ("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK)
-> Int -> Ptr StructureType
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` 0 :: Ptr StructureType)) (StructureType
STRUCTURE_TYPE_IOS_SURFACE_CREATE_INFO_MVK)
Ptr (Ptr ()) -> Ptr () -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK
p ("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK)
-> 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 IOSSurfaceCreateInfoMVK
p ("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK)
-> 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 IOSSurfaceCreateInfoMVK where
peekCStruct :: ("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK)
-> IO IOSSurfaceCreateInfoMVK
peekCStruct p :: "pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK
p = do
IOSSurfaceCreateFlagsMVK
flags <- Ptr IOSSurfaceCreateFlagsMVK -> IO IOSSurfaceCreateFlagsMVK
forall a. Storable a => Ptr a -> IO a
peek @IOSSurfaceCreateFlagsMVK (("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK
p ("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK)
-> Int -> Ptr IOSSurfaceCreateFlagsMVK
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` 16 :: Ptr IOSSurfaceCreateFlagsMVK))
Ptr ()
pView <- Ptr (Ptr ()) -> IO (Ptr ())
forall a. Storable a => Ptr a -> IO a
peek @(Ptr ()) (("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK
p ("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK)
-> Int -> Ptr (Ptr ())
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` 24 :: Ptr (Ptr ())))
IOSSurfaceCreateInfoMVK -> IO IOSSurfaceCreateInfoMVK
forall (f :: * -> *) a. Applicative f => a -> f a
pure (IOSSurfaceCreateInfoMVK -> IO IOSSurfaceCreateInfoMVK)
-> IOSSurfaceCreateInfoMVK -> IO IOSSurfaceCreateInfoMVK
forall a b. (a -> b) -> a -> b
$ IOSSurfaceCreateFlagsMVK -> Ptr () -> IOSSurfaceCreateInfoMVK
IOSSurfaceCreateInfoMVK
IOSSurfaceCreateFlagsMVK
flags Ptr ()
pView
instance Storable IOSSurfaceCreateInfoMVK where
sizeOf :: IOSSurfaceCreateInfoMVK -> Int
sizeOf ~IOSSurfaceCreateInfoMVK
_ = 32
alignment :: IOSSurfaceCreateInfoMVK -> Int
alignment ~IOSSurfaceCreateInfoMVK
_ = 8
peek :: ("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK)
-> IO IOSSurfaceCreateInfoMVK
peek = ("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK)
-> IO IOSSurfaceCreateInfoMVK
forall a. FromCStruct a => Ptr a -> IO a
peekCStruct
poke :: ("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK)
-> IOSSurfaceCreateInfoMVK -> IO ()
poke ptr :: "pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK
ptr poked :: IOSSurfaceCreateInfoMVK
poked = ("pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK)
-> IOSSurfaceCreateInfoMVK -> IO () -> IO ()
forall a b. ToCStruct a => Ptr a -> a -> IO b -> IO b
pokeCStruct "pCreateInfo" ::: Ptr IOSSurfaceCreateInfoMVK
ptr IOSSurfaceCreateInfoMVK
poked (() -> IO ()
forall (f :: * -> *) a. Applicative f => a -> f a
pure ())
instance Zero IOSSurfaceCreateInfoMVK where
zero :: IOSSurfaceCreateInfoMVK
zero = IOSSurfaceCreateFlagsMVK -> Ptr () -> IOSSurfaceCreateInfoMVK
IOSSurfaceCreateInfoMVK
IOSSurfaceCreateFlagsMVK
forall a. Zero a => a
zero
Ptr ()
forall a. Zero a => a
zero
newtype IOSSurfaceCreateFlagsMVK = IOSSurfaceCreateFlagsMVK Flags
deriving newtype (IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK -> Bool
(IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK -> Bool)
-> (IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK -> Bool)
-> Eq IOSSurfaceCreateFlagsMVK
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK -> Bool
$c/= :: IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK -> Bool
== :: IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK -> Bool
$c== :: IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK -> Bool
Eq, Eq IOSSurfaceCreateFlagsMVK
Eq IOSSurfaceCreateFlagsMVK =>
(IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK -> Ordering)
-> (IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK -> Bool)
-> (IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK -> Bool)
-> (IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK -> Bool)
-> (IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK -> Bool)
-> (IOSSurfaceCreateFlagsMVK
-> IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK)
-> (IOSSurfaceCreateFlagsMVK
-> IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK)
-> Ord IOSSurfaceCreateFlagsMVK
IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK -> Bool
IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK -> Ordering
IOSSurfaceCreateFlagsMVK
-> IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK
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 :: IOSSurfaceCreateFlagsMVK
-> IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK
$cmin :: IOSSurfaceCreateFlagsMVK
-> IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK
max :: IOSSurfaceCreateFlagsMVK
-> IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK
$cmax :: IOSSurfaceCreateFlagsMVK
-> IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK
>= :: IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK -> Bool
$c>= :: IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK -> Bool
> :: IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK -> Bool
$c> :: IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK -> Bool
<= :: IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK -> Bool
$c<= :: IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK -> Bool
< :: IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK -> Bool
$c< :: IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK -> Bool
compare :: IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK -> Ordering
$ccompare :: IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK -> Ordering
$cp1Ord :: Eq IOSSurfaceCreateFlagsMVK
Ord, Ptr b -> Int -> IO IOSSurfaceCreateFlagsMVK
Ptr b -> Int -> IOSSurfaceCreateFlagsMVK -> IO ()
Ptr IOSSurfaceCreateFlagsMVK -> IO IOSSurfaceCreateFlagsMVK
Ptr IOSSurfaceCreateFlagsMVK -> Int -> IO IOSSurfaceCreateFlagsMVK
Ptr IOSSurfaceCreateFlagsMVK
-> Int -> IOSSurfaceCreateFlagsMVK -> IO ()
Ptr IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK -> IO ()
IOSSurfaceCreateFlagsMVK -> Int
(IOSSurfaceCreateFlagsMVK -> Int)
-> (IOSSurfaceCreateFlagsMVK -> Int)
-> (Ptr IOSSurfaceCreateFlagsMVK
-> Int -> IO IOSSurfaceCreateFlagsMVK)
-> (Ptr IOSSurfaceCreateFlagsMVK
-> Int -> IOSSurfaceCreateFlagsMVK -> IO ())
-> (forall b. Ptr b -> Int -> IO IOSSurfaceCreateFlagsMVK)
-> (forall b. Ptr b -> Int -> IOSSurfaceCreateFlagsMVK -> IO ())
-> (Ptr IOSSurfaceCreateFlagsMVK -> IO IOSSurfaceCreateFlagsMVK)
-> (Ptr IOSSurfaceCreateFlagsMVK
-> IOSSurfaceCreateFlagsMVK -> IO ())
-> Storable IOSSurfaceCreateFlagsMVK
forall b. Ptr b -> Int -> IO IOSSurfaceCreateFlagsMVK
forall b. Ptr b -> Int -> IOSSurfaceCreateFlagsMVK -> 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 IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK -> IO ()
$cpoke :: Ptr IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK -> IO ()
peek :: Ptr IOSSurfaceCreateFlagsMVK -> IO IOSSurfaceCreateFlagsMVK
$cpeek :: Ptr IOSSurfaceCreateFlagsMVK -> IO IOSSurfaceCreateFlagsMVK
pokeByteOff :: Ptr b -> Int -> IOSSurfaceCreateFlagsMVK -> IO ()
$cpokeByteOff :: forall b. Ptr b -> Int -> IOSSurfaceCreateFlagsMVK -> IO ()
peekByteOff :: Ptr b -> Int -> IO IOSSurfaceCreateFlagsMVK
$cpeekByteOff :: forall b. Ptr b -> Int -> IO IOSSurfaceCreateFlagsMVK
pokeElemOff :: Ptr IOSSurfaceCreateFlagsMVK
-> Int -> IOSSurfaceCreateFlagsMVK -> IO ()
$cpokeElemOff :: Ptr IOSSurfaceCreateFlagsMVK
-> Int -> IOSSurfaceCreateFlagsMVK -> IO ()
peekElemOff :: Ptr IOSSurfaceCreateFlagsMVK -> Int -> IO IOSSurfaceCreateFlagsMVK
$cpeekElemOff :: Ptr IOSSurfaceCreateFlagsMVK -> Int -> IO IOSSurfaceCreateFlagsMVK
alignment :: IOSSurfaceCreateFlagsMVK -> Int
$calignment :: IOSSurfaceCreateFlagsMVK -> Int
sizeOf :: IOSSurfaceCreateFlagsMVK -> Int
$csizeOf :: IOSSurfaceCreateFlagsMVK -> Int
Storable, IOSSurfaceCreateFlagsMVK
IOSSurfaceCreateFlagsMVK -> Zero IOSSurfaceCreateFlagsMVK
forall a. a -> Zero a
zero :: IOSSurfaceCreateFlagsMVK
$czero :: IOSSurfaceCreateFlagsMVK
Zero, Eq IOSSurfaceCreateFlagsMVK
IOSSurfaceCreateFlagsMVK
Eq IOSSurfaceCreateFlagsMVK =>
(IOSSurfaceCreateFlagsMVK
-> IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK)
-> (IOSSurfaceCreateFlagsMVK
-> IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK)
-> (IOSSurfaceCreateFlagsMVK
-> IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK)
-> (IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK)
-> (IOSSurfaceCreateFlagsMVK -> Int -> IOSSurfaceCreateFlagsMVK)
-> (IOSSurfaceCreateFlagsMVK -> Int -> IOSSurfaceCreateFlagsMVK)
-> IOSSurfaceCreateFlagsMVK
-> (Int -> IOSSurfaceCreateFlagsMVK)
-> (IOSSurfaceCreateFlagsMVK -> Int -> IOSSurfaceCreateFlagsMVK)
-> (IOSSurfaceCreateFlagsMVK -> Int -> IOSSurfaceCreateFlagsMVK)
-> (IOSSurfaceCreateFlagsMVK -> Int -> IOSSurfaceCreateFlagsMVK)
-> (IOSSurfaceCreateFlagsMVK -> Int -> Bool)
-> (IOSSurfaceCreateFlagsMVK -> Maybe Int)
-> (IOSSurfaceCreateFlagsMVK -> Int)
-> (IOSSurfaceCreateFlagsMVK -> Bool)
-> (IOSSurfaceCreateFlagsMVK -> Int -> IOSSurfaceCreateFlagsMVK)
-> (IOSSurfaceCreateFlagsMVK -> Int -> IOSSurfaceCreateFlagsMVK)
-> (IOSSurfaceCreateFlagsMVK -> Int -> IOSSurfaceCreateFlagsMVK)
-> (IOSSurfaceCreateFlagsMVK -> Int -> IOSSurfaceCreateFlagsMVK)
-> (IOSSurfaceCreateFlagsMVK -> Int -> IOSSurfaceCreateFlagsMVK)
-> (IOSSurfaceCreateFlagsMVK -> Int -> IOSSurfaceCreateFlagsMVK)
-> (IOSSurfaceCreateFlagsMVK -> Int)
-> Bits IOSSurfaceCreateFlagsMVK
Int -> IOSSurfaceCreateFlagsMVK
IOSSurfaceCreateFlagsMVK -> Bool
IOSSurfaceCreateFlagsMVK -> Int
IOSSurfaceCreateFlagsMVK -> Maybe Int
IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK
IOSSurfaceCreateFlagsMVK -> Int -> Bool
IOSSurfaceCreateFlagsMVK -> Int -> IOSSurfaceCreateFlagsMVK
IOSSurfaceCreateFlagsMVK
-> IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK
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 :: IOSSurfaceCreateFlagsMVK -> Int
$cpopCount :: IOSSurfaceCreateFlagsMVK -> Int
rotateR :: IOSSurfaceCreateFlagsMVK -> Int -> IOSSurfaceCreateFlagsMVK
$crotateR :: IOSSurfaceCreateFlagsMVK -> Int -> IOSSurfaceCreateFlagsMVK
rotateL :: IOSSurfaceCreateFlagsMVK -> Int -> IOSSurfaceCreateFlagsMVK
$crotateL :: IOSSurfaceCreateFlagsMVK -> Int -> IOSSurfaceCreateFlagsMVK
unsafeShiftR :: IOSSurfaceCreateFlagsMVK -> Int -> IOSSurfaceCreateFlagsMVK
$cunsafeShiftR :: IOSSurfaceCreateFlagsMVK -> Int -> IOSSurfaceCreateFlagsMVK
shiftR :: IOSSurfaceCreateFlagsMVK -> Int -> IOSSurfaceCreateFlagsMVK
$cshiftR :: IOSSurfaceCreateFlagsMVK -> Int -> IOSSurfaceCreateFlagsMVK
unsafeShiftL :: IOSSurfaceCreateFlagsMVK -> Int -> IOSSurfaceCreateFlagsMVK
$cunsafeShiftL :: IOSSurfaceCreateFlagsMVK -> Int -> IOSSurfaceCreateFlagsMVK
shiftL :: IOSSurfaceCreateFlagsMVK -> Int -> IOSSurfaceCreateFlagsMVK
$cshiftL :: IOSSurfaceCreateFlagsMVK -> Int -> IOSSurfaceCreateFlagsMVK
isSigned :: IOSSurfaceCreateFlagsMVK -> Bool
$cisSigned :: IOSSurfaceCreateFlagsMVK -> Bool
bitSize :: IOSSurfaceCreateFlagsMVK -> Int
$cbitSize :: IOSSurfaceCreateFlagsMVK -> Int
bitSizeMaybe :: IOSSurfaceCreateFlagsMVK -> Maybe Int
$cbitSizeMaybe :: IOSSurfaceCreateFlagsMVK -> Maybe Int
testBit :: IOSSurfaceCreateFlagsMVK -> Int -> Bool
$ctestBit :: IOSSurfaceCreateFlagsMVK -> Int -> Bool
complementBit :: IOSSurfaceCreateFlagsMVK -> Int -> IOSSurfaceCreateFlagsMVK
$ccomplementBit :: IOSSurfaceCreateFlagsMVK -> Int -> IOSSurfaceCreateFlagsMVK
clearBit :: IOSSurfaceCreateFlagsMVK -> Int -> IOSSurfaceCreateFlagsMVK
$cclearBit :: IOSSurfaceCreateFlagsMVK -> Int -> IOSSurfaceCreateFlagsMVK
setBit :: IOSSurfaceCreateFlagsMVK -> Int -> IOSSurfaceCreateFlagsMVK
$csetBit :: IOSSurfaceCreateFlagsMVK -> Int -> IOSSurfaceCreateFlagsMVK
bit :: Int -> IOSSurfaceCreateFlagsMVK
$cbit :: Int -> IOSSurfaceCreateFlagsMVK
zeroBits :: IOSSurfaceCreateFlagsMVK
$czeroBits :: IOSSurfaceCreateFlagsMVK
rotate :: IOSSurfaceCreateFlagsMVK -> Int -> IOSSurfaceCreateFlagsMVK
$crotate :: IOSSurfaceCreateFlagsMVK -> Int -> IOSSurfaceCreateFlagsMVK
shift :: IOSSurfaceCreateFlagsMVK -> Int -> IOSSurfaceCreateFlagsMVK
$cshift :: IOSSurfaceCreateFlagsMVK -> Int -> IOSSurfaceCreateFlagsMVK
complement :: IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK
$ccomplement :: IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK
xor :: IOSSurfaceCreateFlagsMVK
-> IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK
$cxor :: IOSSurfaceCreateFlagsMVK
-> IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK
.|. :: IOSSurfaceCreateFlagsMVK
-> IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK
$c.|. :: IOSSurfaceCreateFlagsMVK
-> IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK
.&. :: IOSSurfaceCreateFlagsMVK
-> IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK
$c.&. :: IOSSurfaceCreateFlagsMVK
-> IOSSurfaceCreateFlagsMVK -> IOSSurfaceCreateFlagsMVK
$cp1Bits :: Eq IOSSurfaceCreateFlagsMVK
Bits, Bits IOSSurfaceCreateFlagsMVK
Bits IOSSurfaceCreateFlagsMVK =>
(IOSSurfaceCreateFlagsMVK -> Int)
-> (IOSSurfaceCreateFlagsMVK -> Int)
-> (IOSSurfaceCreateFlagsMVK -> Int)
-> FiniteBits IOSSurfaceCreateFlagsMVK
IOSSurfaceCreateFlagsMVK -> Int
forall b.
Bits b =>
(b -> Int) -> (b -> Int) -> (b -> Int) -> FiniteBits b
countTrailingZeros :: IOSSurfaceCreateFlagsMVK -> Int
$ccountTrailingZeros :: IOSSurfaceCreateFlagsMVK -> Int
countLeadingZeros :: IOSSurfaceCreateFlagsMVK -> Int
$ccountLeadingZeros :: IOSSurfaceCreateFlagsMVK -> Int
finiteBitSize :: IOSSurfaceCreateFlagsMVK -> Int
$cfiniteBitSize :: IOSSurfaceCreateFlagsMVK -> Int
$cp1FiniteBits :: Bits IOSSurfaceCreateFlagsMVK
FiniteBits)
conNameIOSSurfaceCreateFlagsMVK :: String
conNameIOSSurfaceCreateFlagsMVK :: String
conNameIOSSurfaceCreateFlagsMVK = "IOSSurfaceCreateFlagsMVK"
enumPrefixIOSSurfaceCreateFlagsMVK :: String
enumPrefixIOSSurfaceCreateFlagsMVK :: String
enumPrefixIOSSurfaceCreateFlagsMVK = ""
showTableIOSSurfaceCreateFlagsMVK :: [(IOSSurfaceCreateFlagsMVK, String)]
showTableIOSSurfaceCreateFlagsMVK :: [(IOSSurfaceCreateFlagsMVK, String)]
showTableIOSSurfaceCreateFlagsMVK = []
instance Show IOSSurfaceCreateFlagsMVK where
showsPrec :: Int -> IOSSurfaceCreateFlagsMVK -> ShowS
showsPrec = String
-> [(IOSSurfaceCreateFlagsMVK, String)]
-> String
-> (IOSSurfaceCreateFlagsMVK -> Flags)
-> (Flags -> ShowS)
-> Int
-> IOSSurfaceCreateFlagsMVK
-> ShowS
forall a i.
Eq a =>
String
-> [(a, String)]
-> String
-> (a -> i)
-> (i -> ShowS)
-> Int
-> a
-> ShowS
enumShowsPrec String
enumPrefixIOSSurfaceCreateFlagsMVK
[(IOSSurfaceCreateFlagsMVK, String)]
showTableIOSSurfaceCreateFlagsMVK
String
conNameIOSSurfaceCreateFlagsMVK
(\(IOSSurfaceCreateFlagsMVK x :: Flags
x) -> Flags
x)
(\x :: Flags
x -> String -> ShowS
showString "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 IOSSurfaceCreateFlagsMVK where
readPrec :: ReadPrec IOSSurfaceCreateFlagsMVK
readPrec = String
-> [(IOSSurfaceCreateFlagsMVK, String)]
-> String
-> (Flags -> IOSSurfaceCreateFlagsMVK)
-> ReadPrec IOSSurfaceCreateFlagsMVK
forall i a.
Read i =>
String -> [(a, String)] -> String -> (i -> a) -> ReadPrec a
enumReadPrec String
enumPrefixIOSSurfaceCreateFlagsMVK
[(IOSSurfaceCreateFlagsMVK, String)]
showTableIOSSurfaceCreateFlagsMVK
String
conNameIOSSurfaceCreateFlagsMVK
Flags -> IOSSurfaceCreateFlagsMVK
IOSSurfaceCreateFlagsMVK
type MVK_IOS_SURFACE_SPEC_VERSION = 3
pattern MVK_IOS_SURFACE_SPEC_VERSION :: forall a . Integral a => a
pattern $bMVK_IOS_SURFACE_SPEC_VERSION :: a
$mMVK_IOS_SURFACE_SPEC_VERSION :: forall r a. Integral a => a -> (Void# -> r) -> (Void# -> r) -> r
MVK_IOS_SURFACE_SPEC_VERSION = 3
type MVK_IOS_SURFACE_EXTENSION_NAME = "VK_MVK_ios_surface"
pattern MVK_IOS_SURFACE_EXTENSION_NAME :: forall a . (Eq a, IsString a) => a
pattern $bMVK_IOS_SURFACE_EXTENSION_NAME :: a
$mMVK_IOS_SURFACE_EXTENSION_NAME :: forall r a.
(Eq a, IsString a) =>
a -> (Void# -> r) -> (Void# -> r) -> r
MVK_IOS_SURFACE_EXTENSION_NAME = "VK_MVK_ios_surface"