{-# language CPP #-}
-- | = Name
--
-- VK_FUCHSIA_imagepipe_surface - instance extension
--
-- == VK_FUCHSIA_imagepipe_surface
--
-- [__Name String__]
--     @VK_FUCHSIA_imagepipe_surface@
--
-- [__Extension Type__]
--     Instance extension
--
-- [__Registered Extension Number__]
--     215
--
-- [__Revision__]
--     1
--
-- [__Ratification Status__]
--     Not ratified
--
-- [__Extension and Version Dependencies__]
--     <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#VK_KHR_surface VK_KHR_surface>
--
-- [__Contact__]
--
--     -   Craig Stout
--         <https://github.com/KhronosGroup/Vulkan-Docs/issues/new?body=[VK_FUCHSIA_imagepipe_surface] @cdotstout%0A*Here describe the issue or question you have about the VK_FUCHSIA_imagepipe_surface extension* >
--
-- == Other Extension Metadata
--
-- [__Last Modified Date__]
--     2018-07-27
--
-- [__IP Status__]
--     No known IP claims.
--
-- [__Contributors__]
--
--     -   Craig Stout, Google
--
--     -   Ian Elliott, Google
--
--     -   Jesse Hall, Google
--
-- == Description
--
-- The @VK_FUCHSIA_imagepipe_surface@ extension is an instance extension.
-- It provides a mechanism to create a
-- 'Vulkan.Extensions.Handles.SurfaceKHR' object (defined by the
-- @VK_KHR_surface@ extension) that refers to a Fuchsia @imagePipeHandle@.
--
-- == New Commands
--
-- -   'createImagePipeSurfaceFUCHSIA'
--
-- == New Structures
--
-- -   'ImagePipeSurfaceCreateInfoFUCHSIA'
--
-- == New Bitmasks
--
-- -   'ImagePipeSurfaceCreateFlagsFUCHSIA'
--
-- == New Enum Constants
--
-- -   'FUCHSIA_IMAGEPIPE_SURFACE_EXTENSION_NAME'
--
-- -   'FUCHSIA_IMAGEPIPE_SURFACE_SPEC_VERSION'
--
-- -   Extending 'Vulkan.Core10.Enums.StructureType.StructureType':
--
--     -   'Vulkan.Core10.Enums.StructureType.STRUCTURE_TYPE_IMAGEPIPE_SURFACE_CREATE_INFO_FUCHSIA'
--
-- == Version History
--
-- -   Revision 1, 2018-07-27 (Craig Stout)
--
--     -   Initial draft.
--
-- == See Also
--
-- 'ImagePipeSurfaceCreateFlagsFUCHSIA',
-- 'ImagePipeSurfaceCreateInfoFUCHSIA', 'createImagePipeSurfaceFUCHSIA'
--
-- == Document Notes
--
-- For more information, see the
-- <https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#VK_FUCHSIA_imagepipe_surface Vulkan Specification>
--
-- This page is a generated document. Fixes and changes should be made to
-- the generator scripts, not directly.
module Vulkan.Extensions.VK_FUCHSIA_imagepipe_surface  ( createImagePipeSurfaceFUCHSIA
                                                       , ImagePipeSurfaceCreateInfoFUCHSIA(..)
                                                       , ImagePipeSurfaceCreateFlagsFUCHSIA(..)
                                                       , FUCHSIA_IMAGEPIPE_SURFACE_SPEC_VERSION
                                                       , pattern FUCHSIA_IMAGEPIPE_SURFACE_SPEC_VERSION
                                                       , FUCHSIA_IMAGEPIPE_SURFACE_EXTENSION_NAME
                                                       , pattern FUCHSIA_IMAGEPIPE_SURFACE_EXTENSION_NAME
                                                       , Zx_handle_t
                                                       , SurfaceKHR(..)
                                                       ) where

import Data.Bits (Bits)
import Data.Bits (FiniteBits)
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 (allocaBytes)
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.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.Word (Word32)
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.Core10.Handles (Instance(Instance))
import Vulkan.Dynamic (InstanceCmds(pVkCreateImagePipeSurfaceFUCHSIA))
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_IMAGEPIPE_SURFACE_CREATE_INFO_FUCHSIA))
import Vulkan.Core10.Enums.Result (Result(SUCCESS))
import Vulkan.Extensions.Handles (SurfaceKHR(..))
foreign import ccall
#if !defined(SAFE_FOREIGN_CALLS)
  unsafe
#endif
  "dynamic" mkVkCreateImagePipeSurfaceFUCHSIA
  :: FunPtr (Ptr Instance_T -> Ptr ImagePipeSurfaceCreateInfoFUCHSIA -> Ptr AllocationCallbacks -> Ptr SurfaceKHR -> IO Result) -> Ptr Instance_T -> Ptr ImagePipeSurfaceCreateInfoFUCHSIA -> Ptr AllocationCallbacks -> Ptr SurfaceKHR -> IO Result

-- | vkCreateImagePipeSurfaceFUCHSIA - Create a
-- 'Vulkan.Extensions.Handles.SurfaceKHR' object for a Fuchsia ImagePipe
--
-- == Valid Usage (Implicit)
--
-- -   #VUID-vkCreateImagePipeSurfaceFUCHSIA-instance-parameter# @instance@
--     /must/ be a valid 'Vulkan.Core10.Handles.Instance' handle
--
-- -   #VUID-vkCreateImagePipeSurfaceFUCHSIA-pCreateInfo-parameter#
--     @pCreateInfo@ /must/ be a valid pointer to a valid
--     'ImagePipeSurfaceCreateInfoFUCHSIA' structure
--
-- -   #VUID-vkCreateImagePipeSurfaceFUCHSIA-pAllocator-parameter# If
--     @pAllocator@ is not @NULL@, @pAllocator@ /must/ be a valid pointer
--     to a valid 'Vulkan.Core10.AllocationCallbacks.AllocationCallbacks'
--     structure
--
-- -   #VUID-vkCreateImagePipeSurfaceFUCHSIA-pSurface-parameter# @pSurface@
--     /must/ be a valid pointer to a
--     'Vulkan.Extensions.Handles.SurfaceKHR' handle
--
-- == Return Codes
--
-- [<https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#fundamentals-successcodes Success>]
--
--     -   'Vulkan.Core10.Enums.Result.SUCCESS'
--
-- [<https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#fundamentals-errorcodes Failure>]
--
--     -   'Vulkan.Core10.Enums.Result.ERROR_OUT_OF_HOST_MEMORY'
--
--     -   'Vulkan.Core10.Enums.Result.ERROR_OUT_OF_DEVICE_MEMORY'
--
-- = See Also
--
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#VK_FUCHSIA_imagepipe_surface VK_FUCHSIA_imagepipe_surface>,
-- 'Vulkan.Core10.AllocationCallbacks.AllocationCallbacks',
-- 'ImagePipeSurfaceCreateInfoFUCHSIA', 'Vulkan.Core10.Handles.Instance',
-- 'Vulkan.Extensions.Handles.SurfaceKHR'
createImagePipeSurfaceFUCHSIA :: forall io
                               . (MonadIO io)
                              => -- | @instance@ is the instance to associate with the surface.
                                 Instance
                              -> -- | @pCreateInfo@ is a pointer to a 'ImagePipeSurfaceCreateInfoFUCHSIA'
                                 -- structure containing parameters affecting the creation of the surface
                                 -- object.
                                 ImagePipeSurfaceCreateInfoFUCHSIA
                              -> -- | @pAllocator@ is the allocator used for host memory allocated for the
                                 -- surface object when there is no more specific allocator available (see
                                 -- <https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#memory-allocation Memory Allocation>).
                                 ("allocator" ::: Maybe AllocationCallbacks)
                              -> io (SurfaceKHR)
createImagePipeSurfaceFUCHSIA :: forall (io :: * -> *).
MonadIO io =>
Instance
-> ImagePipeSurfaceCreateInfoFUCHSIA
-> ("allocator" ::: Maybe AllocationCallbacks)
-> io SurfaceKHR
createImagePipeSurfaceFUCHSIA Instance
instance'
                                ImagePipeSurfaceCreateInfoFUCHSIA
createInfo
                                "allocator" ::: Maybe AllocationCallbacks
allocator = forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO forall b c a. (b -> c) -> (a -> b) -> a -> c
. forall (m :: * -> *) r. Monad m => ContT r m r -> m r
evalContT forall a b. (a -> b) -> a -> b
$ do
  let vkCreateImagePipeSurfaceFUCHSIAPtr :: FunPtr
  (Ptr Instance_T
   -> ("pCreateInfo" ::: Ptr ImagePipeSurfaceCreateInfoFUCHSIA)
   -> ("pAllocator" ::: Ptr AllocationCallbacks)
   -> ("pSurface" ::: Ptr SurfaceKHR)
   -> IO Result)
vkCreateImagePipeSurfaceFUCHSIAPtr = InstanceCmds
-> FunPtr
     (Ptr Instance_T
      -> ("pCreateInfo" ::: Ptr ImagePipeSurfaceCreateInfoFUCHSIA)
      -> ("pAllocator" ::: Ptr AllocationCallbacks)
      -> ("pSurface" ::: Ptr SurfaceKHR)
      -> IO Result)
pVkCreateImagePipeSurfaceFUCHSIA (case Instance
instance' of Instance{InstanceCmds
$sel:instanceCmds:Instance :: Instance -> InstanceCmds
instanceCmds :: InstanceCmds
instanceCmds} -> InstanceCmds
instanceCmds)
  forall (t :: (* -> *) -> * -> *) (m :: * -> *) a.
(MonadTrans t, Monad m) =>
m a -> t m a
lift forall a b. (a -> b) -> a -> b
$ forall (f :: * -> *). Applicative f => Bool -> f () -> f ()
unless (FunPtr
  (Ptr Instance_T
   -> ("pCreateInfo" ::: Ptr ImagePipeSurfaceCreateInfoFUCHSIA)
   -> ("pAllocator" ::: Ptr AllocationCallbacks)
   -> ("pSurface" ::: Ptr SurfaceKHR)
   -> IO Result)
vkCreateImagePipeSurfaceFUCHSIAPtr forall a. Eq a => a -> a -> Bool
/= forall a. FunPtr a
nullFunPtr) forall a b. (a -> b) -> a -> b
$
    forall e a. Exception e => e -> IO a
throwIO forall a b. (a -> b) -> a -> b
$ Maybe Handle
-> IOErrorType
-> String
-> String
-> Maybe CInt
-> Maybe String
-> IOException
IOError forall a. Maybe a
Nothing IOErrorType
InvalidArgument String
"" String
"The function pointer for vkCreateImagePipeSurfaceFUCHSIA is null" forall a. Maybe a
Nothing forall a. Maybe a
Nothing
  let vkCreateImagePipeSurfaceFUCHSIA' :: Ptr Instance_T
-> ("pCreateInfo" ::: Ptr ImagePipeSurfaceCreateInfoFUCHSIA)
-> ("pAllocator" ::: Ptr AllocationCallbacks)
-> ("pSurface" ::: Ptr SurfaceKHR)
-> IO Result
vkCreateImagePipeSurfaceFUCHSIA' = FunPtr
  (Ptr Instance_T
   -> ("pCreateInfo" ::: Ptr ImagePipeSurfaceCreateInfoFUCHSIA)
   -> ("pAllocator" ::: Ptr AllocationCallbacks)
   -> ("pSurface" ::: Ptr SurfaceKHR)
   -> IO Result)
-> Ptr Instance_T
-> ("pCreateInfo" ::: Ptr ImagePipeSurfaceCreateInfoFUCHSIA)
-> ("pAllocator" ::: Ptr AllocationCallbacks)
-> ("pSurface" ::: Ptr SurfaceKHR)
-> IO Result
mkVkCreateImagePipeSurfaceFUCHSIA FunPtr
  (Ptr Instance_T
   -> ("pCreateInfo" ::: Ptr ImagePipeSurfaceCreateInfoFUCHSIA)
   -> ("pAllocator" ::: Ptr AllocationCallbacks)
   -> ("pSurface" ::: Ptr SurfaceKHR)
   -> IO Result)
vkCreateImagePipeSurfaceFUCHSIAPtr
  "pCreateInfo" ::: Ptr ImagePipeSurfaceCreateInfoFUCHSIA
pCreateInfo <- forall {k} (r :: k) (m :: k -> *) a.
((a -> m r) -> m r) -> ContT r m a
ContT forall a b. (a -> b) -> a -> b
$ forall a b. ToCStruct a => a -> (Ptr a -> IO b) -> IO b
withCStruct (ImagePipeSurfaceCreateInfoFUCHSIA
createInfo)
  "pAllocator" ::: Ptr AllocationCallbacks
pAllocator <- case ("allocator" ::: Maybe AllocationCallbacks
allocator) of
    "allocator" ::: Maybe AllocationCallbacks
Nothing -> forall (f :: * -> *) a. Applicative f => a -> f a
pure forall a. Ptr a
nullPtr
    Just AllocationCallbacks
j -> forall {k} (r :: k) (m :: k -> *) a.
((a -> m r) -> m r) -> ContT r m a
ContT forall a b. (a -> b) -> a -> b
$ forall a b. ToCStruct a => a -> (Ptr a -> IO b) -> IO b
withCStruct (AllocationCallbacks
j)
  "pSurface" ::: Ptr SurfaceKHR
pPSurface <- forall {k} (r :: k) (m :: k -> *) a.
((a -> m r) -> m r) -> ContT r m a
ContT forall a b. (a -> b) -> a -> b
$ forall a b c. IO a -> (a -> IO b) -> (a -> IO c) -> IO c
bracket (forall a. Int -> IO (Ptr a)
callocBytes @SurfaceKHR Int
8) forall a. Ptr a -> IO ()
free
  Result
r <- forall (t :: (* -> *) -> * -> *) (m :: * -> *) a.
(MonadTrans t, Monad m) =>
m a -> t m a
lift forall a b. (a -> b) -> a -> b
$ forall a. String -> IO a -> IO a
traceAroundEvent String
"vkCreateImagePipeSurfaceFUCHSIA" (Ptr Instance_T
-> ("pCreateInfo" ::: Ptr ImagePipeSurfaceCreateInfoFUCHSIA)
-> ("pAllocator" ::: Ptr AllocationCallbacks)
-> ("pSurface" ::: Ptr SurfaceKHR)
-> IO Result
vkCreateImagePipeSurfaceFUCHSIA'
                                                                    (Instance -> Ptr Instance_T
instanceHandle (Instance
instance'))
                                                                    "pCreateInfo" ::: Ptr ImagePipeSurfaceCreateInfoFUCHSIA
pCreateInfo
                                                                    "pAllocator" ::: Ptr AllocationCallbacks
pAllocator
                                                                    ("pSurface" ::: Ptr SurfaceKHR
pPSurface))
  forall (t :: (* -> *) -> * -> *) (m :: * -> *) a.
(MonadTrans t, Monad m) =>
m a -> t m a
lift forall a b. (a -> b) -> a -> b
$ forall (f :: * -> *). Applicative f => Bool -> f () -> f ()
when (Result
r forall a. Ord a => a -> a -> Bool
< Result
SUCCESS) (forall e a. Exception e => e -> IO a
throwIO (Result -> VulkanException
VulkanException Result
r))
  SurfaceKHR
pSurface <- forall (t :: (* -> *) -> * -> *) (m :: * -> *) a.
(MonadTrans t, Monad m) =>
m a -> t m a
lift forall a b. (a -> b) -> a -> b
$ forall a. Storable a => Ptr a -> IO a
peek @SurfaceKHR "pSurface" ::: Ptr SurfaceKHR
pPSurface
  forall (f :: * -> *) a. Applicative f => a -> f a
pure forall a b. (a -> b) -> a -> b
$ (SurfaceKHR
pSurface)


-- | VkImagePipeSurfaceCreateInfoFUCHSIA - Structure specifying parameters of
-- a newly created ImagePipe surface object
--
-- == Valid Usage (Implicit)
--
-- = See Also
--
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#VK_FUCHSIA_imagepipe_surface VK_FUCHSIA_imagepipe_surface>,
-- 'ImagePipeSurfaceCreateFlagsFUCHSIA',
-- 'Vulkan.Core10.Enums.StructureType.StructureType',
-- 'createImagePipeSurfaceFUCHSIA'
data ImagePipeSurfaceCreateInfoFUCHSIA = ImagePipeSurfaceCreateInfoFUCHSIA
  { -- | @flags@ is reserved for future use.
    --
    -- #VUID-VkImagePipeSurfaceCreateInfoFUCHSIA-flags-zerobitmask# @flags@
    -- /must/ be @0@
    ImagePipeSurfaceCreateInfoFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA
flags :: ImagePipeSurfaceCreateFlagsFUCHSIA
  , -- | @imagePipeHandle@ is a @zx_handle_t@ referring to the ImagePipe to
    -- associate with the surface.
    --
    -- #VUID-VkImagePipeSurfaceCreateInfoFUCHSIA-imagePipeHandle-04863#
    -- @imagePipeHandle@ /must/ be a valid @zx_handle_t@
    ImagePipeSurfaceCreateInfoFUCHSIA -> Zx_handle_t
imagePipeHandle :: Zx_handle_t
  }
  deriving (Typeable, ImagePipeSurfaceCreateInfoFUCHSIA
-> ImagePipeSurfaceCreateInfoFUCHSIA -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ImagePipeSurfaceCreateInfoFUCHSIA
-> ImagePipeSurfaceCreateInfoFUCHSIA -> Bool
$c/= :: ImagePipeSurfaceCreateInfoFUCHSIA
-> ImagePipeSurfaceCreateInfoFUCHSIA -> Bool
== :: ImagePipeSurfaceCreateInfoFUCHSIA
-> ImagePipeSurfaceCreateInfoFUCHSIA -> Bool
$c== :: ImagePipeSurfaceCreateInfoFUCHSIA
-> ImagePipeSurfaceCreateInfoFUCHSIA -> Bool
Eq)
#if defined(GENERIC_INSTANCES)
deriving instance Generic (ImagePipeSurfaceCreateInfoFUCHSIA)
#endif
deriving instance Show ImagePipeSurfaceCreateInfoFUCHSIA

instance ToCStruct ImagePipeSurfaceCreateInfoFUCHSIA where
  withCStruct :: forall b.
ImagePipeSurfaceCreateInfoFUCHSIA
-> (("pCreateInfo" ::: Ptr ImagePipeSurfaceCreateInfoFUCHSIA)
    -> IO b)
-> IO b
withCStruct ImagePipeSurfaceCreateInfoFUCHSIA
x ("pCreateInfo" ::: Ptr ImagePipeSurfaceCreateInfoFUCHSIA) -> IO b
f = forall a b. Int -> (Ptr a -> IO b) -> IO b
allocaBytes Int
24 forall a b. (a -> b) -> a -> b
$ \"pCreateInfo" ::: Ptr ImagePipeSurfaceCreateInfoFUCHSIA
p -> forall a b. ToCStruct a => Ptr a -> a -> IO b -> IO b
pokeCStruct "pCreateInfo" ::: Ptr ImagePipeSurfaceCreateInfoFUCHSIA
p ImagePipeSurfaceCreateInfoFUCHSIA
x (("pCreateInfo" ::: Ptr ImagePipeSurfaceCreateInfoFUCHSIA) -> IO b
f "pCreateInfo" ::: Ptr ImagePipeSurfaceCreateInfoFUCHSIA
p)
  pokeCStruct :: forall b.
("pCreateInfo" ::: Ptr ImagePipeSurfaceCreateInfoFUCHSIA)
-> ImagePipeSurfaceCreateInfoFUCHSIA -> IO b -> IO b
pokeCStruct "pCreateInfo" ::: Ptr ImagePipeSurfaceCreateInfoFUCHSIA
p ImagePipeSurfaceCreateInfoFUCHSIA{Zx_handle_t
ImagePipeSurfaceCreateFlagsFUCHSIA
imagePipeHandle :: Zx_handle_t
flags :: ImagePipeSurfaceCreateFlagsFUCHSIA
$sel:imagePipeHandle:ImagePipeSurfaceCreateInfoFUCHSIA :: ImagePipeSurfaceCreateInfoFUCHSIA -> Zx_handle_t
$sel:flags:ImagePipeSurfaceCreateInfoFUCHSIA :: ImagePipeSurfaceCreateInfoFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA
..} IO b
f = do
    forall a. Storable a => Ptr a -> a -> IO ()
poke (("pCreateInfo" ::: Ptr ImagePipeSurfaceCreateInfoFUCHSIA
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
0 :: Ptr StructureType)) (StructureType
STRUCTURE_TYPE_IMAGEPIPE_SURFACE_CREATE_INFO_FUCHSIA)
    forall a. Storable a => Ptr a -> a -> IO ()
poke (("pCreateInfo" ::: Ptr ImagePipeSurfaceCreateInfoFUCHSIA
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
8 :: Ptr (Ptr ()))) (forall a. Ptr a
nullPtr)
    forall a. Storable a => Ptr a -> a -> IO ()
poke (("pCreateInfo" ::: Ptr ImagePipeSurfaceCreateInfoFUCHSIA
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
16 :: Ptr ImagePipeSurfaceCreateFlagsFUCHSIA)) (ImagePipeSurfaceCreateFlagsFUCHSIA
flags)
    forall a. Storable a => Ptr a -> a -> IO ()
poke (("pCreateInfo" ::: Ptr ImagePipeSurfaceCreateInfoFUCHSIA
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
20 :: Ptr Zx_handle_t)) (Zx_handle_t
imagePipeHandle)
    IO b
f
  cStructSize :: Int
cStructSize = Int
24
  cStructAlignment :: Int
cStructAlignment = Int
8
  pokeZeroCStruct :: forall b.
("pCreateInfo" ::: Ptr ImagePipeSurfaceCreateInfoFUCHSIA)
-> IO b -> IO b
pokeZeroCStruct "pCreateInfo" ::: Ptr ImagePipeSurfaceCreateInfoFUCHSIA
p IO b
f = do
    forall a. Storable a => Ptr a -> a -> IO ()
poke (("pCreateInfo" ::: Ptr ImagePipeSurfaceCreateInfoFUCHSIA
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
0 :: Ptr StructureType)) (StructureType
STRUCTURE_TYPE_IMAGEPIPE_SURFACE_CREATE_INFO_FUCHSIA)
    forall a. Storable a => Ptr a -> a -> IO ()
poke (("pCreateInfo" ::: Ptr ImagePipeSurfaceCreateInfoFUCHSIA
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
8 :: Ptr (Ptr ()))) (forall a. Ptr a
nullPtr)
    forall a. Storable a => Ptr a -> a -> IO ()
poke (("pCreateInfo" ::: Ptr ImagePipeSurfaceCreateInfoFUCHSIA
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
20 :: Ptr Zx_handle_t)) (forall a. Zero a => a
zero)
    IO b
f

instance FromCStruct ImagePipeSurfaceCreateInfoFUCHSIA where
  peekCStruct :: ("pCreateInfo" ::: Ptr ImagePipeSurfaceCreateInfoFUCHSIA)
-> IO ImagePipeSurfaceCreateInfoFUCHSIA
peekCStruct "pCreateInfo" ::: Ptr ImagePipeSurfaceCreateInfoFUCHSIA
p = do
    ImagePipeSurfaceCreateFlagsFUCHSIA
flags <- forall a. Storable a => Ptr a -> IO a
peek @ImagePipeSurfaceCreateFlagsFUCHSIA (("pCreateInfo" ::: Ptr ImagePipeSurfaceCreateInfoFUCHSIA
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
16 :: Ptr ImagePipeSurfaceCreateFlagsFUCHSIA))
    Zx_handle_t
imagePipeHandle <- forall a. Storable a => Ptr a -> IO a
peek @Zx_handle_t (("pCreateInfo" ::: Ptr ImagePipeSurfaceCreateInfoFUCHSIA
p forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
20 :: Ptr Zx_handle_t))
    forall (f :: * -> *) a. Applicative f => a -> f a
pure forall a b. (a -> b) -> a -> b
$ ImagePipeSurfaceCreateFlagsFUCHSIA
-> Zx_handle_t -> ImagePipeSurfaceCreateInfoFUCHSIA
ImagePipeSurfaceCreateInfoFUCHSIA
             ImagePipeSurfaceCreateFlagsFUCHSIA
flags Zx_handle_t
imagePipeHandle

instance Storable ImagePipeSurfaceCreateInfoFUCHSIA where
  sizeOf :: ImagePipeSurfaceCreateInfoFUCHSIA -> Int
sizeOf ~ImagePipeSurfaceCreateInfoFUCHSIA
_ = Int
24
  alignment :: ImagePipeSurfaceCreateInfoFUCHSIA -> Int
alignment ~ImagePipeSurfaceCreateInfoFUCHSIA
_ = Int
8
  peek :: ("pCreateInfo" ::: Ptr ImagePipeSurfaceCreateInfoFUCHSIA)
-> IO ImagePipeSurfaceCreateInfoFUCHSIA
peek = forall a. FromCStruct a => Ptr a -> IO a
peekCStruct
  poke :: ("pCreateInfo" ::: Ptr ImagePipeSurfaceCreateInfoFUCHSIA)
-> ImagePipeSurfaceCreateInfoFUCHSIA -> IO ()
poke "pCreateInfo" ::: Ptr ImagePipeSurfaceCreateInfoFUCHSIA
ptr ImagePipeSurfaceCreateInfoFUCHSIA
poked = forall a b. ToCStruct a => Ptr a -> a -> IO b -> IO b
pokeCStruct "pCreateInfo" ::: Ptr ImagePipeSurfaceCreateInfoFUCHSIA
ptr ImagePipeSurfaceCreateInfoFUCHSIA
poked (forall (f :: * -> *) a. Applicative f => a -> f a
pure ())

instance Zero ImagePipeSurfaceCreateInfoFUCHSIA where
  zero :: ImagePipeSurfaceCreateInfoFUCHSIA
zero = ImagePipeSurfaceCreateFlagsFUCHSIA
-> Zx_handle_t -> ImagePipeSurfaceCreateInfoFUCHSIA
ImagePipeSurfaceCreateInfoFUCHSIA
           forall a. Zero a => a
zero
           forall a. Zero a => a
zero


-- | VkImagePipeSurfaceCreateFlagsFUCHSIA - Reserved for future use
--
-- = Description
--
-- 'ImagePipeSurfaceCreateFlagsFUCHSIA' is a bitmask type for setting a
-- mask, but is currently reserved for future use.
--
-- = See Also
--
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#VK_FUCHSIA_imagepipe_surface VK_FUCHSIA_imagepipe_surface>,
-- 'ImagePipeSurfaceCreateInfoFUCHSIA'
newtype ImagePipeSurfaceCreateFlagsFUCHSIA = ImagePipeSurfaceCreateFlagsFUCHSIA Flags
  deriving newtype (ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA -> Bool
$c/= :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA -> Bool
== :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA -> Bool
$c== :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA -> Bool
Eq, Eq ImagePipeSurfaceCreateFlagsFUCHSIA
ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA -> Bool
ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA -> Ordering
ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA
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 :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA
$cmin :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA
max :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA
$cmax :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA
>= :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA -> Bool
$c>= :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA -> Bool
> :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA -> Bool
$c> :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA -> Bool
<= :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA -> Bool
$c<= :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA -> Bool
< :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA -> Bool
$c< :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA -> Bool
compare :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA -> Ordering
$ccompare :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA -> Ordering
Ord, Ptr ImagePipeSurfaceCreateFlagsFUCHSIA
-> IO ImagePipeSurfaceCreateFlagsFUCHSIA
Ptr ImagePipeSurfaceCreateFlagsFUCHSIA
-> Int -> IO ImagePipeSurfaceCreateFlagsFUCHSIA
Ptr ImagePipeSurfaceCreateFlagsFUCHSIA
-> Int -> ImagePipeSurfaceCreateFlagsFUCHSIA -> IO ()
Ptr ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA -> IO ()
ImagePipeSurfaceCreateFlagsFUCHSIA -> Int
forall b. Ptr b -> Int -> IO ImagePipeSurfaceCreateFlagsFUCHSIA
forall b.
Ptr b -> Int -> ImagePipeSurfaceCreateFlagsFUCHSIA -> 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 ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA -> IO ()
$cpoke :: Ptr ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA -> IO ()
peek :: Ptr ImagePipeSurfaceCreateFlagsFUCHSIA
-> IO ImagePipeSurfaceCreateFlagsFUCHSIA
$cpeek :: Ptr ImagePipeSurfaceCreateFlagsFUCHSIA
-> IO ImagePipeSurfaceCreateFlagsFUCHSIA
pokeByteOff :: forall b.
Ptr b -> Int -> ImagePipeSurfaceCreateFlagsFUCHSIA -> IO ()
$cpokeByteOff :: forall b.
Ptr b -> Int -> ImagePipeSurfaceCreateFlagsFUCHSIA -> IO ()
peekByteOff :: forall b. Ptr b -> Int -> IO ImagePipeSurfaceCreateFlagsFUCHSIA
$cpeekByteOff :: forall b. Ptr b -> Int -> IO ImagePipeSurfaceCreateFlagsFUCHSIA
pokeElemOff :: Ptr ImagePipeSurfaceCreateFlagsFUCHSIA
-> Int -> ImagePipeSurfaceCreateFlagsFUCHSIA -> IO ()
$cpokeElemOff :: Ptr ImagePipeSurfaceCreateFlagsFUCHSIA
-> Int -> ImagePipeSurfaceCreateFlagsFUCHSIA -> IO ()
peekElemOff :: Ptr ImagePipeSurfaceCreateFlagsFUCHSIA
-> Int -> IO ImagePipeSurfaceCreateFlagsFUCHSIA
$cpeekElemOff :: Ptr ImagePipeSurfaceCreateFlagsFUCHSIA
-> Int -> IO ImagePipeSurfaceCreateFlagsFUCHSIA
alignment :: ImagePipeSurfaceCreateFlagsFUCHSIA -> Int
$calignment :: ImagePipeSurfaceCreateFlagsFUCHSIA -> Int
sizeOf :: ImagePipeSurfaceCreateFlagsFUCHSIA -> Int
$csizeOf :: ImagePipeSurfaceCreateFlagsFUCHSIA -> Int
Storable, ImagePipeSurfaceCreateFlagsFUCHSIA
forall a. a -> Zero a
zero :: ImagePipeSurfaceCreateFlagsFUCHSIA
$czero :: ImagePipeSurfaceCreateFlagsFUCHSIA
Zero, Eq ImagePipeSurfaceCreateFlagsFUCHSIA
ImagePipeSurfaceCreateFlagsFUCHSIA
Int -> ImagePipeSurfaceCreateFlagsFUCHSIA
ImagePipeSurfaceCreateFlagsFUCHSIA -> Bool
ImagePipeSurfaceCreateFlagsFUCHSIA -> Int
ImagePipeSurfaceCreateFlagsFUCHSIA -> Maybe Int
ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA
ImagePipeSurfaceCreateFlagsFUCHSIA -> Int -> Bool
ImagePipeSurfaceCreateFlagsFUCHSIA
-> Int -> ImagePipeSurfaceCreateFlagsFUCHSIA
ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA
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 :: ImagePipeSurfaceCreateFlagsFUCHSIA -> Int
$cpopCount :: ImagePipeSurfaceCreateFlagsFUCHSIA -> Int
rotateR :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> Int -> ImagePipeSurfaceCreateFlagsFUCHSIA
$crotateR :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> Int -> ImagePipeSurfaceCreateFlagsFUCHSIA
rotateL :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> Int -> ImagePipeSurfaceCreateFlagsFUCHSIA
$crotateL :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> Int -> ImagePipeSurfaceCreateFlagsFUCHSIA
unsafeShiftR :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> Int -> ImagePipeSurfaceCreateFlagsFUCHSIA
$cunsafeShiftR :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> Int -> ImagePipeSurfaceCreateFlagsFUCHSIA
shiftR :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> Int -> ImagePipeSurfaceCreateFlagsFUCHSIA
$cshiftR :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> Int -> ImagePipeSurfaceCreateFlagsFUCHSIA
unsafeShiftL :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> Int -> ImagePipeSurfaceCreateFlagsFUCHSIA
$cunsafeShiftL :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> Int -> ImagePipeSurfaceCreateFlagsFUCHSIA
shiftL :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> Int -> ImagePipeSurfaceCreateFlagsFUCHSIA
$cshiftL :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> Int -> ImagePipeSurfaceCreateFlagsFUCHSIA
isSigned :: ImagePipeSurfaceCreateFlagsFUCHSIA -> Bool
$cisSigned :: ImagePipeSurfaceCreateFlagsFUCHSIA -> Bool
bitSize :: ImagePipeSurfaceCreateFlagsFUCHSIA -> Int
$cbitSize :: ImagePipeSurfaceCreateFlagsFUCHSIA -> Int
bitSizeMaybe :: ImagePipeSurfaceCreateFlagsFUCHSIA -> Maybe Int
$cbitSizeMaybe :: ImagePipeSurfaceCreateFlagsFUCHSIA -> Maybe Int
testBit :: ImagePipeSurfaceCreateFlagsFUCHSIA -> Int -> Bool
$ctestBit :: ImagePipeSurfaceCreateFlagsFUCHSIA -> Int -> Bool
complementBit :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> Int -> ImagePipeSurfaceCreateFlagsFUCHSIA
$ccomplementBit :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> Int -> ImagePipeSurfaceCreateFlagsFUCHSIA
clearBit :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> Int -> ImagePipeSurfaceCreateFlagsFUCHSIA
$cclearBit :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> Int -> ImagePipeSurfaceCreateFlagsFUCHSIA
setBit :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> Int -> ImagePipeSurfaceCreateFlagsFUCHSIA
$csetBit :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> Int -> ImagePipeSurfaceCreateFlagsFUCHSIA
bit :: Int -> ImagePipeSurfaceCreateFlagsFUCHSIA
$cbit :: Int -> ImagePipeSurfaceCreateFlagsFUCHSIA
zeroBits :: ImagePipeSurfaceCreateFlagsFUCHSIA
$czeroBits :: ImagePipeSurfaceCreateFlagsFUCHSIA
rotate :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> Int -> ImagePipeSurfaceCreateFlagsFUCHSIA
$crotate :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> Int -> ImagePipeSurfaceCreateFlagsFUCHSIA
shift :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> Int -> ImagePipeSurfaceCreateFlagsFUCHSIA
$cshift :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> Int -> ImagePipeSurfaceCreateFlagsFUCHSIA
complement :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA
$ccomplement :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA
xor :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA
$cxor :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA
.|. :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA
$c.|. :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA
.&. :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA
$c.&. :: ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA
Bits, Bits ImagePipeSurfaceCreateFlagsFUCHSIA
ImagePipeSurfaceCreateFlagsFUCHSIA -> Int
forall b.
Bits b -> (b -> Int) -> (b -> Int) -> (b -> Int) -> FiniteBits b
countTrailingZeros :: ImagePipeSurfaceCreateFlagsFUCHSIA -> Int
$ccountTrailingZeros :: ImagePipeSurfaceCreateFlagsFUCHSIA -> Int
countLeadingZeros :: ImagePipeSurfaceCreateFlagsFUCHSIA -> Int
$ccountLeadingZeros :: ImagePipeSurfaceCreateFlagsFUCHSIA -> Int
finiteBitSize :: ImagePipeSurfaceCreateFlagsFUCHSIA -> Int
$cfiniteBitSize :: ImagePipeSurfaceCreateFlagsFUCHSIA -> Int
FiniteBits)

conNameImagePipeSurfaceCreateFlagsFUCHSIA :: String
conNameImagePipeSurfaceCreateFlagsFUCHSIA :: String
conNameImagePipeSurfaceCreateFlagsFUCHSIA = String
"ImagePipeSurfaceCreateFlagsFUCHSIA"

enumPrefixImagePipeSurfaceCreateFlagsFUCHSIA :: String
enumPrefixImagePipeSurfaceCreateFlagsFUCHSIA :: String
enumPrefixImagePipeSurfaceCreateFlagsFUCHSIA = String
""

showTableImagePipeSurfaceCreateFlagsFUCHSIA :: [(ImagePipeSurfaceCreateFlagsFUCHSIA, String)]
showTableImagePipeSurfaceCreateFlagsFUCHSIA :: [(ImagePipeSurfaceCreateFlagsFUCHSIA, String)]
showTableImagePipeSurfaceCreateFlagsFUCHSIA = []

instance Show ImagePipeSurfaceCreateFlagsFUCHSIA where
  showsPrec :: Int -> ImagePipeSurfaceCreateFlagsFUCHSIA -> ShowS
showsPrec =
    forall a i.
Eq a =>
String
-> [(a, String)]
-> String
-> (a -> i)
-> (i -> ShowS)
-> Int
-> a
-> ShowS
enumShowsPrec
      String
enumPrefixImagePipeSurfaceCreateFlagsFUCHSIA
      [(ImagePipeSurfaceCreateFlagsFUCHSIA, String)]
showTableImagePipeSurfaceCreateFlagsFUCHSIA
      String
conNameImagePipeSurfaceCreateFlagsFUCHSIA
      (\(ImagePipeSurfaceCreateFlagsFUCHSIA Zx_handle_t
x) -> Zx_handle_t
x)
      (\Zx_handle_t
x -> String -> ShowS
showString String
"0x" forall b c a. (b -> c) -> (a -> b) -> a -> c
. forall a. (Integral a, Show a) => a -> ShowS
showHex Zx_handle_t
x)

instance Read ImagePipeSurfaceCreateFlagsFUCHSIA where
  readPrec :: ReadPrec ImagePipeSurfaceCreateFlagsFUCHSIA
readPrec =
    forall i a.
Read i =>
String -> [(a, String)] -> String -> (i -> a) -> ReadPrec a
enumReadPrec
      String
enumPrefixImagePipeSurfaceCreateFlagsFUCHSIA
      [(ImagePipeSurfaceCreateFlagsFUCHSIA, String)]
showTableImagePipeSurfaceCreateFlagsFUCHSIA
      String
conNameImagePipeSurfaceCreateFlagsFUCHSIA
      Zx_handle_t -> ImagePipeSurfaceCreateFlagsFUCHSIA
ImagePipeSurfaceCreateFlagsFUCHSIA

type FUCHSIA_IMAGEPIPE_SURFACE_SPEC_VERSION = 1

-- No documentation found for TopLevel "VK_FUCHSIA_IMAGEPIPE_SURFACE_SPEC_VERSION"
pattern FUCHSIA_IMAGEPIPE_SURFACE_SPEC_VERSION :: forall a . Integral a => a
pattern $bFUCHSIA_IMAGEPIPE_SURFACE_SPEC_VERSION :: forall a. Integral a => a
$mFUCHSIA_IMAGEPIPE_SURFACE_SPEC_VERSION :: forall {r} {a}.
Integral a =>
a -> ((# #) -> r) -> ((# #) -> r) -> r
FUCHSIA_IMAGEPIPE_SURFACE_SPEC_VERSION = 1


type FUCHSIA_IMAGEPIPE_SURFACE_EXTENSION_NAME = "VK_FUCHSIA_imagepipe_surface"

-- No documentation found for TopLevel "VK_FUCHSIA_IMAGEPIPE_SURFACE_EXTENSION_NAME"
pattern FUCHSIA_IMAGEPIPE_SURFACE_EXTENSION_NAME :: forall a . (Eq a, IsString a) => a
pattern $bFUCHSIA_IMAGEPIPE_SURFACE_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a
$mFUCHSIA_IMAGEPIPE_SURFACE_EXTENSION_NAME :: forall {r} {a}.
(Eq a, IsString a) =>
a -> ((# #) -> r) -> ((# #) -> r) -> r
FUCHSIA_IMAGEPIPE_SURFACE_EXTENSION_NAME = "VK_FUCHSIA_imagepipe_surface"


type Zx_handle_t = Word32