{-# language CPP #-}
module Vulkan.Extensions.VK_EXT_headless_surface ( createHeadlessSurfaceEXT
, HeadlessSurfaceCreateInfoEXT(..)
, HeadlessSurfaceCreateFlagsEXT(..)
, EXT_HEADLESS_SURFACE_SPEC_VERSION
, pattern EXT_HEADLESS_SURFACE_SPEC_VERSION
, EXT_HEADLESS_SURFACE_EXTENSION_NAME
, pattern EXT_HEADLESS_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(pVkCreateHeadlessSurfaceEXT))
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_HEADLESS_SURFACE_CREATE_INFO_EXT))
import Vulkan.Core10.Enums.Result (Result(SUCCESS))
import Vulkan.Extensions.Handles (SurfaceKHR(..))
foreign import ccall
#if !defined(SAFE_FOREIGN_CALLS)
unsafe
#endif
"dynamic" mkVkCreateHeadlessSurfaceEXT
:: FunPtr (Ptr Instance_T -> Ptr HeadlessSurfaceCreateInfoEXT -> Ptr AllocationCallbacks -> Ptr SurfaceKHR -> IO Result) -> Ptr Instance_T -> Ptr HeadlessSurfaceCreateInfoEXT -> Ptr AllocationCallbacks -> Ptr SurfaceKHR -> IO Result
createHeadlessSurfaceEXT :: forall io . MonadIO io => Instance -> HeadlessSurfaceCreateInfoEXT -> ("allocator" ::: Maybe AllocationCallbacks) -> io (SurfaceKHR)
createHeadlessSurfaceEXT :: Instance
-> HeadlessSurfaceCreateInfoEXT
-> ("allocator" ::: Maybe AllocationCallbacks)
-> io SurfaceKHR
createHeadlessSurfaceEXT instance' :: Instance
instance' createInfo :: HeadlessSurfaceCreateInfoEXT
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 vkCreateHeadlessSurfaceEXTPtr :: FunPtr
(Ptr Instance_T
-> ("pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT)
-> ("pAllocator" ::: Ptr AllocationCallbacks)
-> ("pSurface" ::: Ptr SurfaceKHR)
-> IO Result)
vkCreateHeadlessSurfaceEXTPtr = InstanceCmds
-> FunPtr
(Ptr Instance_T
-> ("pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT)
-> ("pAllocator" ::: Ptr AllocationCallbacks)
-> ("pSurface" ::: Ptr SurfaceKHR)
-> IO Result)
pVkCreateHeadlessSurfaceEXT (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 HeadlessSurfaceCreateInfoEXT)
-> ("pAllocator" ::: Ptr AllocationCallbacks)
-> ("pSurface" ::: Ptr SurfaceKHR)
-> IO Result)
vkCreateHeadlessSurfaceEXTPtr FunPtr
(Ptr Instance_T
-> ("pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT)
-> ("pAllocator" ::: Ptr AllocationCallbacks)
-> ("pSurface" ::: Ptr SurfaceKHR)
-> IO Result)
-> FunPtr
(Ptr Instance_T
-> ("pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT)
-> ("pAllocator" ::: Ptr AllocationCallbacks)
-> ("pSurface" ::: Ptr SurfaceKHR)
-> IO Result)
-> Bool
forall a. Eq a => a -> a -> Bool
/= FunPtr
(Ptr Instance_T
-> ("pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT)
-> ("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 vkCreateHeadlessSurfaceEXT is null" Maybe CInt
forall a. Maybe a
Nothing Maybe String
forall a. Maybe a
Nothing
let vkCreateHeadlessSurfaceEXT' :: Ptr Instance_T
-> ("pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT)
-> ("pAllocator" ::: Ptr AllocationCallbacks)
-> ("pSurface" ::: Ptr SurfaceKHR)
-> IO Result
vkCreateHeadlessSurfaceEXT' = FunPtr
(Ptr Instance_T
-> ("pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT)
-> ("pAllocator" ::: Ptr AllocationCallbacks)
-> ("pSurface" ::: Ptr SurfaceKHR)
-> IO Result)
-> Ptr Instance_T
-> ("pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT)
-> ("pAllocator" ::: Ptr AllocationCallbacks)
-> ("pSurface" ::: Ptr SurfaceKHR)
-> IO Result
mkVkCreateHeadlessSurfaceEXT FunPtr
(Ptr Instance_T
-> ("pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT)
-> ("pAllocator" ::: Ptr AllocationCallbacks)
-> ("pSurface" ::: Ptr SurfaceKHR)
-> IO Result)
vkCreateHeadlessSurfaceEXTPtr
"pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT
pCreateInfo <- ((("pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT)
-> IO SurfaceKHR)
-> IO SurfaceKHR)
-> ContT
SurfaceKHR IO ("pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT)
forall k (r :: k) (m :: k -> *) a.
((a -> m r) -> m r) -> ContT r m a
ContT (((("pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT)
-> IO SurfaceKHR)
-> IO SurfaceKHR)
-> ContT
SurfaceKHR IO ("pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT))
-> ((("pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT)
-> IO SurfaceKHR)
-> IO SurfaceKHR)
-> ContT
SurfaceKHR IO ("pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT)
forall a b. (a -> b) -> a -> b
$ HeadlessSurfaceCreateInfoEXT
-> (("pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT)
-> IO SurfaceKHR)
-> IO SurfaceKHR
forall a b. ToCStruct a => a -> (Ptr a -> IO b) -> IO b
withCStruct (HeadlessSurfaceCreateInfoEXT
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 HeadlessSurfaceCreateInfoEXT)
-> ("pAllocator" ::: Ptr AllocationCallbacks)
-> ("pSurface" ::: Ptr SurfaceKHR)
-> IO Result
vkCreateHeadlessSurfaceEXT' (Instance -> Ptr Instance_T
instanceHandle (Instance
instance')) "pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT
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 HeadlessSurfaceCreateInfoEXT = HeadlessSurfaceCreateInfoEXT
{
HeadlessSurfaceCreateInfoEXT -> HeadlessSurfaceCreateFlagsEXT
flags :: HeadlessSurfaceCreateFlagsEXT }
deriving (Typeable)
deriving instance Show HeadlessSurfaceCreateInfoEXT
instance ToCStruct HeadlessSurfaceCreateInfoEXT where
withCStruct :: HeadlessSurfaceCreateInfoEXT
-> (("pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT) -> IO b)
-> IO b
withCStruct x :: HeadlessSurfaceCreateInfoEXT
x f :: ("pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT) -> IO b
f = Int
-> Int
-> (("pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT) -> IO b)
-> IO b
forall a b. Int -> Int -> (Ptr a -> IO b) -> IO b
allocaBytesAligned 24 8 ((("pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT) -> IO b)
-> IO b)
-> (("pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT) -> IO b)
-> IO b
forall a b. (a -> b) -> a -> b
$ \p :: "pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT
p -> ("pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT)
-> HeadlessSurfaceCreateInfoEXT -> IO b -> IO b
forall a b. ToCStruct a => Ptr a -> a -> IO b -> IO b
pokeCStruct "pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT
p HeadlessSurfaceCreateInfoEXT
x (("pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT) -> IO b
f "pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT
p)
pokeCStruct :: ("pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT)
-> HeadlessSurfaceCreateInfoEXT -> IO b -> IO b
pokeCStruct p :: "pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT
p HeadlessSurfaceCreateInfoEXT{..} f :: IO b
f = do
Ptr StructureType -> StructureType -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (("pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT
p ("pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT)
-> Int -> Ptr StructureType
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` 0 :: Ptr StructureType)) (StructureType
STRUCTURE_TYPE_HEADLESS_SURFACE_CREATE_INFO_EXT)
Ptr (Ptr ()) -> Ptr () -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (("pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT
p ("pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT)
-> Int -> Ptr (Ptr ())
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` 8 :: Ptr (Ptr ()))) (Ptr ()
forall a. Ptr a
nullPtr)
Ptr HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (("pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT
p ("pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT)
-> Int -> Ptr HeadlessSurfaceCreateFlagsEXT
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` 16 :: Ptr HeadlessSurfaceCreateFlagsEXT)) (HeadlessSurfaceCreateFlagsEXT
flags)
IO b
f
cStructSize :: Int
cStructSize = 24
cStructAlignment :: Int
cStructAlignment = 8
pokeZeroCStruct :: ("pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT)
-> IO b -> IO b
pokeZeroCStruct p :: "pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT
p f :: IO b
f = do
Ptr StructureType -> StructureType -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (("pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT
p ("pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT)
-> Int -> Ptr StructureType
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` 0 :: Ptr StructureType)) (StructureType
STRUCTURE_TYPE_HEADLESS_SURFACE_CREATE_INFO_EXT)
Ptr (Ptr ()) -> Ptr () -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (("pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT
p ("pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT)
-> Int -> Ptr (Ptr ())
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` 8 :: Ptr (Ptr ()))) (Ptr ()
forall a. Ptr a
nullPtr)
IO b
f
instance FromCStruct HeadlessSurfaceCreateInfoEXT where
peekCStruct :: ("pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT)
-> IO HeadlessSurfaceCreateInfoEXT
peekCStruct p :: "pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT
p = do
HeadlessSurfaceCreateFlagsEXT
flags <- Ptr HeadlessSurfaceCreateFlagsEXT
-> IO HeadlessSurfaceCreateFlagsEXT
forall a. Storable a => Ptr a -> IO a
peek @HeadlessSurfaceCreateFlagsEXT (("pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT
p ("pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT)
-> Int -> Ptr HeadlessSurfaceCreateFlagsEXT
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` 16 :: Ptr HeadlessSurfaceCreateFlagsEXT))
HeadlessSurfaceCreateInfoEXT -> IO HeadlessSurfaceCreateInfoEXT
forall (f :: * -> *) a. Applicative f => a -> f a
pure (HeadlessSurfaceCreateInfoEXT -> IO HeadlessSurfaceCreateInfoEXT)
-> HeadlessSurfaceCreateInfoEXT -> IO HeadlessSurfaceCreateInfoEXT
forall a b. (a -> b) -> a -> b
$ HeadlessSurfaceCreateFlagsEXT -> HeadlessSurfaceCreateInfoEXT
HeadlessSurfaceCreateInfoEXT
HeadlessSurfaceCreateFlagsEXT
flags
instance Storable HeadlessSurfaceCreateInfoEXT where
sizeOf :: HeadlessSurfaceCreateInfoEXT -> Int
sizeOf ~HeadlessSurfaceCreateInfoEXT
_ = 24
alignment :: HeadlessSurfaceCreateInfoEXT -> Int
alignment ~HeadlessSurfaceCreateInfoEXT
_ = 8
peek :: ("pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT)
-> IO HeadlessSurfaceCreateInfoEXT
peek = ("pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT)
-> IO HeadlessSurfaceCreateInfoEXT
forall a. FromCStruct a => Ptr a -> IO a
peekCStruct
poke :: ("pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT)
-> HeadlessSurfaceCreateInfoEXT -> IO ()
poke ptr :: "pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT
ptr poked :: HeadlessSurfaceCreateInfoEXT
poked = ("pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT)
-> HeadlessSurfaceCreateInfoEXT -> IO () -> IO ()
forall a b. ToCStruct a => Ptr a -> a -> IO b -> IO b
pokeCStruct "pCreateInfo" ::: Ptr HeadlessSurfaceCreateInfoEXT
ptr HeadlessSurfaceCreateInfoEXT
poked (() -> IO ()
forall (f :: * -> *) a. Applicative f => a -> f a
pure ())
instance Zero HeadlessSurfaceCreateInfoEXT where
zero :: HeadlessSurfaceCreateInfoEXT
zero = HeadlessSurfaceCreateFlagsEXT -> HeadlessSurfaceCreateInfoEXT
HeadlessSurfaceCreateInfoEXT
HeadlessSurfaceCreateFlagsEXT
forall a. Zero a => a
zero
newtype HeadlessSurfaceCreateFlagsEXT = HeadlessSurfaceCreateFlagsEXT Flags
deriving newtype (HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> Bool
(HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> Bool)
-> (HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> Bool)
-> Eq HeadlessSurfaceCreateFlagsEXT
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> Bool
$c/= :: HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> Bool
== :: HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> Bool
$c== :: HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> Bool
Eq, Eq HeadlessSurfaceCreateFlagsEXT
Eq HeadlessSurfaceCreateFlagsEXT =>
(HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> Ordering)
-> (HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> Bool)
-> (HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> Bool)
-> (HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> Bool)
-> (HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> Bool)
-> (HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> HeadlessSurfaceCreateFlagsEXT)
-> (HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> HeadlessSurfaceCreateFlagsEXT)
-> Ord HeadlessSurfaceCreateFlagsEXT
HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> Bool
HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> Ordering
HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> HeadlessSurfaceCreateFlagsEXT
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 :: HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> HeadlessSurfaceCreateFlagsEXT
$cmin :: HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> HeadlessSurfaceCreateFlagsEXT
max :: HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> HeadlessSurfaceCreateFlagsEXT
$cmax :: HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> HeadlessSurfaceCreateFlagsEXT
>= :: HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> Bool
$c>= :: HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> Bool
> :: HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> Bool
$c> :: HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> Bool
<= :: HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> Bool
$c<= :: HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> Bool
< :: HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> Bool
$c< :: HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> Bool
compare :: HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> Ordering
$ccompare :: HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> Ordering
$cp1Ord :: Eq HeadlessSurfaceCreateFlagsEXT
Ord, Ptr b -> Int -> IO HeadlessSurfaceCreateFlagsEXT
Ptr b -> Int -> HeadlessSurfaceCreateFlagsEXT -> IO ()
Ptr HeadlessSurfaceCreateFlagsEXT
-> IO HeadlessSurfaceCreateFlagsEXT
Ptr HeadlessSurfaceCreateFlagsEXT
-> Int -> IO HeadlessSurfaceCreateFlagsEXT
Ptr HeadlessSurfaceCreateFlagsEXT
-> Int -> HeadlessSurfaceCreateFlagsEXT -> IO ()
Ptr HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> IO ()
HeadlessSurfaceCreateFlagsEXT -> Int
(HeadlessSurfaceCreateFlagsEXT -> Int)
-> (HeadlessSurfaceCreateFlagsEXT -> Int)
-> (Ptr HeadlessSurfaceCreateFlagsEXT
-> Int -> IO HeadlessSurfaceCreateFlagsEXT)
-> (Ptr HeadlessSurfaceCreateFlagsEXT
-> Int -> HeadlessSurfaceCreateFlagsEXT -> IO ())
-> (forall b. Ptr b -> Int -> IO HeadlessSurfaceCreateFlagsEXT)
-> (forall b.
Ptr b -> Int -> HeadlessSurfaceCreateFlagsEXT -> IO ())
-> (Ptr HeadlessSurfaceCreateFlagsEXT
-> IO HeadlessSurfaceCreateFlagsEXT)
-> (Ptr HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> IO ())
-> Storable HeadlessSurfaceCreateFlagsEXT
forall b. Ptr b -> Int -> IO HeadlessSurfaceCreateFlagsEXT
forall b. Ptr b -> Int -> HeadlessSurfaceCreateFlagsEXT -> 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 HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> IO ()
$cpoke :: Ptr HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> IO ()
peek :: Ptr HeadlessSurfaceCreateFlagsEXT
-> IO HeadlessSurfaceCreateFlagsEXT
$cpeek :: Ptr HeadlessSurfaceCreateFlagsEXT
-> IO HeadlessSurfaceCreateFlagsEXT
pokeByteOff :: Ptr b -> Int -> HeadlessSurfaceCreateFlagsEXT -> IO ()
$cpokeByteOff :: forall b. Ptr b -> Int -> HeadlessSurfaceCreateFlagsEXT -> IO ()
peekByteOff :: Ptr b -> Int -> IO HeadlessSurfaceCreateFlagsEXT
$cpeekByteOff :: forall b. Ptr b -> Int -> IO HeadlessSurfaceCreateFlagsEXT
pokeElemOff :: Ptr HeadlessSurfaceCreateFlagsEXT
-> Int -> HeadlessSurfaceCreateFlagsEXT -> IO ()
$cpokeElemOff :: Ptr HeadlessSurfaceCreateFlagsEXT
-> Int -> HeadlessSurfaceCreateFlagsEXT -> IO ()
peekElemOff :: Ptr HeadlessSurfaceCreateFlagsEXT
-> Int -> IO HeadlessSurfaceCreateFlagsEXT
$cpeekElemOff :: Ptr HeadlessSurfaceCreateFlagsEXT
-> Int -> IO HeadlessSurfaceCreateFlagsEXT
alignment :: HeadlessSurfaceCreateFlagsEXT -> Int
$calignment :: HeadlessSurfaceCreateFlagsEXT -> Int
sizeOf :: HeadlessSurfaceCreateFlagsEXT -> Int
$csizeOf :: HeadlessSurfaceCreateFlagsEXT -> Int
Storable, HeadlessSurfaceCreateFlagsEXT
HeadlessSurfaceCreateFlagsEXT -> Zero HeadlessSurfaceCreateFlagsEXT
forall a. a -> Zero a
zero :: HeadlessSurfaceCreateFlagsEXT
$czero :: HeadlessSurfaceCreateFlagsEXT
Zero, Eq HeadlessSurfaceCreateFlagsEXT
HeadlessSurfaceCreateFlagsEXT
Eq HeadlessSurfaceCreateFlagsEXT =>
(HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> HeadlessSurfaceCreateFlagsEXT)
-> (HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> HeadlessSurfaceCreateFlagsEXT)
-> (HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> HeadlessSurfaceCreateFlagsEXT)
-> (HeadlessSurfaceCreateFlagsEXT -> HeadlessSurfaceCreateFlagsEXT)
-> (HeadlessSurfaceCreateFlagsEXT
-> Int -> HeadlessSurfaceCreateFlagsEXT)
-> (HeadlessSurfaceCreateFlagsEXT
-> Int -> HeadlessSurfaceCreateFlagsEXT)
-> HeadlessSurfaceCreateFlagsEXT
-> (Int -> HeadlessSurfaceCreateFlagsEXT)
-> (HeadlessSurfaceCreateFlagsEXT
-> Int -> HeadlessSurfaceCreateFlagsEXT)
-> (HeadlessSurfaceCreateFlagsEXT
-> Int -> HeadlessSurfaceCreateFlagsEXT)
-> (HeadlessSurfaceCreateFlagsEXT
-> Int -> HeadlessSurfaceCreateFlagsEXT)
-> (HeadlessSurfaceCreateFlagsEXT -> Int -> Bool)
-> (HeadlessSurfaceCreateFlagsEXT -> Maybe Int)
-> (HeadlessSurfaceCreateFlagsEXT -> Int)
-> (HeadlessSurfaceCreateFlagsEXT -> Bool)
-> (HeadlessSurfaceCreateFlagsEXT
-> Int -> HeadlessSurfaceCreateFlagsEXT)
-> (HeadlessSurfaceCreateFlagsEXT
-> Int -> HeadlessSurfaceCreateFlagsEXT)
-> (HeadlessSurfaceCreateFlagsEXT
-> Int -> HeadlessSurfaceCreateFlagsEXT)
-> (HeadlessSurfaceCreateFlagsEXT
-> Int -> HeadlessSurfaceCreateFlagsEXT)
-> (HeadlessSurfaceCreateFlagsEXT
-> Int -> HeadlessSurfaceCreateFlagsEXT)
-> (HeadlessSurfaceCreateFlagsEXT
-> Int -> HeadlessSurfaceCreateFlagsEXT)
-> (HeadlessSurfaceCreateFlagsEXT -> Int)
-> Bits HeadlessSurfaceCreateFlagsEXT
Int -> HeadlessSurfaceCreateFlagsEXT
HeadlessSurfaceCreateFlagsEXT -> Bool
HeadlessSurfaceCreateFlagsEXT -> Int
HeadlessSurfaceCreateFlagsEXT -> Maybe Int
HeadlessSurfaceCreateFlagsEXT -> HeadlessSurfaceCreateFlagsEXT
HeadlessSurfaceCreateFlagsEXT -> Int -> Bool
HeadlessSurfaceCreateFlagsEXT
-> Int -> HeadlessSurfaceCreateFlagsEXT
HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> HeadlessSurfaceCreateFlagsEXT
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 :: HeadlessSurfaceCreateFlagsEXT -> Int
$cpopCount :: HeadlessSurfaceCreateFlagsEXT -> Int
rotateR :: HeadlessSurfaceCreateFlagsEXT
-> Int -> HeadlessSurfaceCreateFlagsEXT
$crotateR :: HeadlessSurfaceCreateFlagsEXT
-> Int -> HeadlessSurfaceCreateFlagsEXT
rotateL :: HeadlessSurfaceCreateFlagsEXT
-> Int -> HeadlessSurfaceCreateFlagsEXT
$crotateL :: HeadlessSurfaceCreateFlagsEXT
-> Int -> HeadlessSurfaceCreateFlagsEXT
unsafeShiftR :: HeadlessSurfaceCreateFlagsEXT
-> Int -> HeadlessSurfaceCreateFlagsEXT
$cunsafeShiftR :: HeadlessSurfaceCreateFlagsEXT
-> Int -> HeadlessSurfaceCreateFlagsEXT
shiftR :: HeadlessSurfaceCreateFlagsEXT
-> Int -> HeadlessSurfaceCreateFlagsEXT
$cshiftR :: HeadlessSurfaceCreateFlagsEXT
-> Int -> HeadlessSurfaceCreateFlagsEXT
unsafeShiftL :: HeadlessSurfaceCreateFlagsEXT
-> Int -> HeadlessSurfaceCreateFlagsEXT
$cunsafeShiftL :: HeadlessSurfaceCreateFlagsEXT
-> Int -> HeadlessSurfaceCreateFlagsEXT
shiftL :: HeadlessSurfaceCreateFlagsEXT
-> Int -> HeadlessSurfaceCreateFlagsEXT
$cshiftL :: HeadlessSurfaceCreateFlagsEXT
-> Int -> HeadlessSurfaceCreateFlagsEXT
isSigned :: HeadlessSurfaceCreateFlagsEXT -> Bool
$cisSigned :: HeadlessSurfaceCreateFlagsEXT -> Bool
bitSize :: HeadlessSurfaceCreateFlagsEXT -> Int
$cbitSize :: HeadlessSurfaceCreateFlagsEXT -> Int
bitSizeMaybe :: HeadlessSurfaceCreateFlagsEXT -> Maybe Int
$cbitSizeMaybe :: HeadlessSurfaceCreateFlagsEXT -> Maybe Int
testBit :: HeadlessSurfaceCreateFlagsEXT -> Int -> Bool
$ctestBit :: HeadlessSurfaceCreateFlagsEXT -> Int -> Bool
complementBit :: HeadlessSurfaceCreateFlagsEXT
-> Int -> HeadlessSurfaceCreateFlagsEXT
$ccomplementBit :: HeadlessSurfaceCreateFlagsEXT
-> Int -> HeadlessSurfaceCreateFlagsEXT
clearBit :: HeadlessSurfaceCreateFlagsEXT
-> Int -> HeadlessSurfaceCreateFlagsEXT
$cclearBit :: HeadlessSurfaceCreateFlagsEXT
-> Int -> HeadlessSurfaceCreateFlagsEXT
setBit :: HeadlessSurfaceCreateFlagsEXT
-> Int -> HeadlessSurfaceCreateFlagsEXT
$csetBit :: HeadlessSurfaceCreateFlagsEXT
-> Int -> HeadlessSurfaceCreateFlagsEXT
bit :: Int -> HeadlessSurfaceCreateFlagsEXT
$cbit :: Int -> HeadlessSurfaceCreateFlagsEXT
zeroBits :: HeadlessSurfaceCreateFlagsEXT
$czeroBits :: HeadlessSurfaceCreateFlagsEXT
rotate :: HeadlessSurfaceCreateFlagsEXT
-> Int -> HeadlessSurfaceCreateFlagsEXT
$crotate :: HeadlessSurfaceCreateFlagsEXT
-> Int -> HeadlessSurfaceCreateFlagsEXT
shift :: HeadlessSurfaceCreateFlagsEXT
-> Int -> HeadlessSurfaceCreateFlagsEXT
$cshift :: HeadlessSurfaceCreateFlagsEXT
-> Int -> HeadlessSurfaceCreateFlagsEXT
complement :: HeadlessSurfaceCreateFlagsEXT -> HeadlessSurfaceCreateFlagsEXT
$ccomplement :: HeadlessSurfaceCreateFlagsEXT -> HeadlessSurfaceCreateFlagsEXT
xor :: HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> HeadlessSurfaceCreateFlagsEXT
$cxor :: HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> HeadlessSurfaceCreateFlagsEXT
.|. :: HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> HeadlessSurfaceCreateFlagsEXT
$c.|. :: HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> HeadlessSurfaceCreateFlagsEXT
.&. :: HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> HeadlessSurfaceCreateFlagsEXT
$c.&. :: HeadlessSurfaceCreateFlagsEXT
-> HeadlessSurfaceCreateFlagsEXT -> HeadlessSurfaceCreateFlagsEXT
$cp1Bits :: Eq HeadlessSurfaceCreateFlagsEXT
Bits)
instance Show HeadlessSurfaceCreateFlagsEXT where
showsPrec :: Int -> HeadlessSurfaceCreateFlagsEXT -> ShowS
showsPrec p :: Int
p = \case
HeadlessSurfaceCreateFlagsEXT x :: Flags
x -> Bool -> ShowS -> ShowS
showParen (Int
p Int -> Int -> Bool
forall a. Ord a => a -> a -> Bool
>= 11) (String -> ShowS
showString "HeadlessSurfaceCreateFlagsEXT 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 HeadlessSurfaceCreateFlagsEXT where
readPrec :: ReadPrec HeadlessSurfaceCreateFlagsEXT
readPrec = ReadPrec HeadlessSurfaceCreateFlagsEXT
-> ReadPrec HeadlessSurfaceCreateFlagsEXT
forall a. ReadPrec a -> ReadPrec a
parens ([(String, ReadPrec HeadlessSurfaceCreateFlagsEXT)]
-> ReadPrec HeadlessSurfaceCreateFlagsEXT
forall a. [(String, ReadPrec a)] -> ReadPrec a
choose []
ReadPrec HeadlessSurfaceCreateFlagsEXT
-> ReadPrec HeadlessSurfaceCreateFlagsEXT
-> ReadPrec HeadlessSurfaceCreateFlagsEXT
forall a. ReadPrec a -> ReadPrec a -> ReadPrec a
+++
Int
-> ReadPrec HeadlessSurfaceCreateFlagsEXT
-> ReadPrec HeadlessSurfaceCreateFlagsEXT
forall a. Int -> ReadPrec a -> ReadPrec a
prec 10 (do
Lexeme -> ReadPrec ()
expectP (String -> Lexeme
Ident "HeadlessSurfaceCreateFlagsEXT")
Flags
v <- ReadPrec Flags -> ReadPrec Flags
forall a. ReadPrec a -> ReadPrec a
step ReadPrec Flags
forall a. Read a => ReadPrec a
readPrec
HeadlessSurfaceCreateFlagsEXT
-> ReadPrec HeadlessSurfaceCreateFlagsEXT
forall (f :: * -> *) a. Applicative f => a -> f a
pure (Flags -> HeadlessSurfaceCreateFlagsEXT
HeadlessSurfaceCreateFlagsEXT Flags
v)))
type EXT_HEADLESS_SURFACE_SPEC_VERSION = 1
pattern EXT_HEADLESS_SURFACE_SPEC_VERSION :: forall a . Integral a => a
pattern $bEXT_HEADLESS_SURFACE_SPEC_VERSION :: a
$mEXT_HEADLESS_SURFACE_SPEC_VERSION :: forall r a. Integral a => a -> (Void# -> r) -> (Void# -> r) -> r
EXT_HEADLESS_SURFACE_SPEC_VERSION = 1
type EXT_HEADLESS_SURFACE_EXTENSION_NAME = "VK_EXT_headless_surface"
pattern EXT_HEADLESS_SURFACE_EXTENSION_NAME :: forall a . (Eq a, IsString a) => a
pattern $bEXT_HEADLESS_SURFACE_EXTENSION_NAME :: a
$mEXT_HEADLESS_SURFACE_EXTENSION_NAME :: forall r a.
(Eq a, IsString a) =>
a -> (Void# -> r) -> (Void# -> r) -> r
EXT_HEADLESS_SURFACE_EXTENSION_NAME = "VK_EXT_headless_surface"