{-# language CPP #-}
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
createImagePipeSurfaceFUCHSIA :: forall io
. (MonadIO io)
=>
Instance
->
ImagePipeSurfaceCreateInfoFUCHSIA
->
("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)
data ImagePipeSurfaceCreateInfoFUCHSIA = ImagePipeSurfaceCreateInfoFUCHSIA
{
ImagePipeSurfaceCreateInfoFUCHSIA
-> ImagePipeSurfaceCreateFlagsFUCHSIA
flags :: ImagePipeSurfaceCreateFlagsFUCHSIA
,
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
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
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"
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