{-# language CPP #-}
-- No documentation found for Chapter "SemaphoreImportFlagBits"
module Vulkan.Core11.Enums.SemaphoreImportFlagBits  ( SemaphoreImportFlags
                                                    , SemaphoreImportFlagBits( SEMAPHORE_IMPORT_TEMPORARY_BIT
                                                                             , ..
                                                                             )
                                                    ) where

import Data.Bits (Bits)
import Data.Bits (FiniteBits)
import Vulkan.Internal.Utils (enumReadPrec)
import Vulkan.Internal.Utils (enumShowsPrec)
import GHC.Show (showString)
import Numeric (showHex)
import Vulkan.Zero (Zero)
import Foreign.Storable (Storable)
import GHC.Read (Read(readPrec))
import GHC.Show (Show(showsPrec))
import Vulkan.Core10.FundamentalTypes (Flags)
type SemaphoreImportFlags = SemaphoreImportFlagBits

-- | VkSemaphoreImportFlagBits - Bitmask specifying additional parameters of
-- semaphore payload import
--
-- = Description
--
-- These bits have the following meanings:
--
-- = See Also
--
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#VK_VERSION_1_1 VK_VERSION_1_1>,
-- 'SemaphoreImportFlags'
newtype SemaphoreImportFlagBits = SemaphoreImportFlagBits Flags
  deriving newtype (SemaphoreImportFlagBits -> SemaphoreImportFlagBits -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SemaphoreImportFlagBits -> SemaphoreImportFlagBits -> Bool
$c/= :: SemaphoreImportFlagBits -> SemaphoreImportFlagBits -> Bool
== :: SemaphoreImportFlagBits -> SemaphoreImportFlagBits -> Bool
$c== :: SemaphoreImportFlagBits -> SemaphoreImportFlagBits -> Bool
Eq, Eq SemaphoreImportFlagBits
SemaphoreImportFlagBits -> SemaphoreImportFlagBits -> Bool
SemaphoreImportFlagBits -> SemaphoreImportFlagBits -> Ordering
SemaphoreImportFlagBits
-> SemaphoreImportFlagBits -> SemaphoreImportFlagBits
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 :: SemaphoreImportFlagBits
-> SemaphoreImportFlagBits -> SemaphoreImportFlagBits
$cmin :: SemaphoreImportFlagBits
-> SemaphoreImportFlagBits -> SemaphoreImportFlagBits
max :: SemaphoreImportFlagBits
-> SemaphoreImportFlagBits -> SemaphoreImportFlagBits
$cmax :: SemaphoreImportFlagBits
-> SemaphoreImportFlagBits -> SemaphoreImportFlagBits
>= :: SemaphoreImportFlagBits -> SemaphoreImportFlagBits -> Bool
$c>= :: SemaphoreImportFlagBits -> SemaphoreImportFlagBits -> Bool
> :: SemaphoreImportFlagBits -> SemaphoreImportFlagBits -> Bool
$c> :: SemaphoreImportFlagBits -> SemaphoreImportFlagBits -> Bool
<= :: SemaphoreImportFlagBits -> SemaphoreImportFlagBits -> Bool
$c<= :: SemaphoreImportFlagBits -> SemaphoreImportFlagBits -> Bool
< :: SemaphoreImportFlagBits -> SemaphoreImportFlagBits -> Bool
$c< :: SemaphoreImportFlagBits -> SemaphoreImportFlagBits -> Bool
compare :: SemaphoreImportFlagBits -> SemaphoreImportFlagBits -> Ordering
$ccompare :: SemaphoreImportFlagBits -> SemaphoreImportFlagBits -> Ordering
Ord, Ptr SemaphoreImportFlagBits -> IO SemaphoreImportFlagBits
Ptr SemaphoreImportFlagBits -> Int -> IO SemaphoreImportFlagBits
Ptr SemaphoreImportFlagBits
-> Int -> SemaphoreImportFlagBits -> IO ()
Ptr SemaphoreImportFlagBits -> SemaphoreImportFlagBits -> IO ()
SemaphoreImportFlagBits -> Int
forall b. Ptr b -> Int -> IO SemaphoreImportFlagBits
forall b. Ptr b -> Int -> SemaphoreImportFlagBits -> 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 SemaphoreImportFlagBits -> SemaphoreImportFlagBits -> IO ()
$cpoke :: Ptr SemaphoreImportFlagBits -> SemaphoreImportFlagBits -> IO ()
peek :: Ptr SemaphoreImportFlagBits -> IO SemaphoreImportFlagBits
$cpeek :: Ptr SemaphoreImportFlagBits -> IO SemaphoreImportFlagBits
pokeByteOff :: forall b. Ptr b -> Int -> SemaphoreImportFlagBits -> IO ()
$cpokeByteOff :: forall b. Ptr b -> Int -> SemaphoreImportFlagBits -> IO ()
peekByteOff :: forall b. Ptr b -> Int -> IO SemaphoreImportFlagBits
$cpeekByteOff :: forall b. Ptr b -> Int -> IO SemaphoreImportFlagBits
pokeElemOff :: Ptr SemaphoreImportFlagBits
-> Int -> SemaphoreImportFlagBits -> IO ()
$cpokeElemOff :: Ptr SemaphoreImportFlagBits
-> Int -> SemaphoreImportFlagBits -> IO ()
peekElemOff :: Ptr SemaphoreImportFlagBits -> Int -> IO SemaphoreImportFlagBits
$cpeekElemOff :: Ptr SemaphoreImportFlagBits -> Int -> IO SemaphoreImportFlagBits
alignment :: SemaphoreImportFlagBits -> Int
$calignment :: SemaphoreImportFlagBits -> Int
sizeOf :: SemaphoreImportFlagBits -> Int
$csizeOf :: SemaphoreImportFlagBits -> Int
Storable, SemaphoreImportFlagBits
forall a. a -> Zero a
zero :: SemaphoreImportFlagBits
$czero :: SemaphoreImportFlagBits
Zero, Eq SemaphoreImportFlagBits
SemaphoreImportFlagBits
Int -> SemaphoreImportFlagBits
SemaphoreImportFlagBits -> Bool
SemaphoreImportFlagBits -> Int
SemaphoreImportFlagBits -> Maybe Int
SemaphoreImportFlagBits -> SemaphoreImportFlagBits
SemaphoreImportFlagBits -> Int -> Bool
SemaphoreImportFlagBits -> Int -> SemaphoreImportFlagBits
SemaphoreImportFlagBits
-> SemaphoreImportFlagBits -> SemaphoreImportFlagBits
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 :: SemaphoreImportFlagBits -> Int
$cpopCount :: SemaphoreImportFlagBits -> Int
rotateR :: SemaphoreImportFlagBits -> Int -> SemaphoreImportFlagBits
$crotateR :: SemaphoreImportFlagBits -> Int -> SemaphoreImportFlagBits
rotateL :: SemaphoreImportFlagBits -> Int -> SemaphoreImportFlagBits
$crotateL :: SemaphoreImportFlagBits -> Int -> SemaphoreImportFlagBits
unsafeShiftR :: SemaphoreImportFlagBits -> Int -> SemaphoreImportFlagBits
$cunsafeShiftR :: SemaphoreImportFlagBits -> Int -> SemaphoreImportFlagBits
shiftR :: SemaphoreImportFlagBits -> Int -> SemaphoreImportFlagBits
$cshiftR :: SemaphoreImportFlagBits -> Int -> SemaphoreImportFlagBits
unsafeShiftL :: SemaphoreImportFlagBits -> Int -> SemaphoreImportFlagBits
$cunsafeShiftL :: SemaphoreImportFlagBits -> Int -> SemaphoreImportFlagBits
shiftL :: SemaphoreImportFlagBits -> Int -> SemaphoreImportFlagBits
$cshiftL :: SemaphoreImportFlagBits -> Int -> SemaphoreImportFlagBits
isSigned :: SemaphoreImportFlagBits -> Bool
$cisSigned :: SemaphoreImportFlagBits -> Bool
bitSize :: SemaphoreImportFlagBits -> Int
$cbitSize :: SemaphoreImportFlagBits -> Int
bitSizeMaybe :: SemaphoreImportFlagBits -> Maybe Int
$cbitSizeMaybe :: SemaphoreImportFlagBits -> Maybe Int
testBit :: SemaphoreImportFlagBits -> Int -> Bool
$ctestBit :: SemaphoreImportFlagBits -> Int -> Bool
complementBit :: SemaphoreImportFlagBits -> Int -> SemaphoreImportFlagBits
$ccomplementBit :: SemaphoreImportFlagBits -> Int -> SemaphoreImportFlagBits
clearBit :: SemaphoreImportFlagBits -> Int -> SemaphoreImportFlagBits
$cclearBit :: SemaphoreImportFlagBits -> Int -> SemaphoreImportFlagBits
setBit :: SemaphoreImportFlagBits -> Int -> SemaphoreImportFlagBits
$csetBit :: SemaphoreImportFlagBits -> Int -> SemaphoreImportFlagBits
bit :: Int -> SemaphoreImportFlagBits
$cbit :: Int -> SemaphoreImportFlagBits
zeroBits :: SemaphoreImportFlagBits
$czeroBits :: SemaphoreImportFlagBits
rotate :: SemaphoreImportFlagBits -> Int -> SemaphoreImportFlagBits
$crotate :: SemaphoreImportFlagBits -> Int -> SemaphoreImportFlagBits
shift :: SemaphoreImportFlagBits -> Int -> SemaphoreImportFlagBits
$cshift :: SemaphoreImportFlagBits -> Int -> SemaphoreImportFlagBits
complement :: SemaphoreImportFlagBits -> SemaphoreImportFlagBits
$ccomplement :: SemaphoreImportFlagBits -> SemaphoreImportFlagBits
xor :: SemaphoreImportFlagBits
-> SemaphoreImportFlagBits -> SemaphoreImportFlagBits
$cxor :: SemaphoreImportFlagBits
-> SemaphoreImportFlagBits -> SemaphoreImportFlagBits
.|. :: SemaphoreImportFlagBits
-> SemaphoreImportFlagBits -> SemaphoreImportFlagBits
$c.|. :: SemaphoreImportFlagBits
-> SemaphoreImportFlagBits -> SemaphoreImportFlagBits
.&. :: SemaphoreImportFlagBits
-> SemaphoreImportFlagBits -> SemaphoreImportFlagBits
$c.&. :: SemaphoreImportFlagBits
-> SemaphoreImportFlagBits -> SemaphoreImportFlagBits
Bits, Bits SemaphoreImportFlagBits
SemaphoreImportFlagBits -> Int
forall b.
Bits b -> (b -> Int) -> (b -> Int) -> (b -> Int) -> FiniteBits b
countTrailingZeros :: SemaphoreImportFlagBits -> Int
$ccountTrailingZeros :: SemaphoreImportFlagBits -> Int
countLeadingZeros :: SemaphoreImportFlagBits -> Int
$ccountLeadingZeros :: SemaphoreImportFlagBits -> Int
finiteBitSize :: SemaphoreImportFlagBits -> Int
$cfiniteBitSize :: SemaphoreImportFlagBits -> Int
FiniteBits)

-- | 'SEMAPHORE_IMPORT_TEMPORARY_BIT' specifies that the semaphore payload
-- will be imported only temporarily, as described in
-- <https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#synchronization-semaphores-importing Importing Semaphore Payloads>,
-- regardless of the permanence of @handleType@.
pattern $bSEMAPHORE_IMPORT_TEMPORARY_BIT :: SemaphoreImportFlagBits
$mSEMAPHORE_IMPORT_TEMPORARY_BIT :: forall {r}.
SemaphoreImportFlagBits -> ((# #) -> r) -> ((# #) -> r) -> r
SEMAPHORE_IMPORT_TEMPORARY_BIT = SemaphoreImportFlagBits 0x00000001

conNameSemaphoreImportFlagBits :: String
conNameSemaphoreImportFlagBits :: String
conNameSemaphoreImportFlagBits = String
"SemaphoreImportFlagBits"

enumPrefixSemaphoreImportFlagBits :: String
enumPrefixSemaphoreImportFlagBits :: String
enumPrefixSemaphoreImportFlagBits = String
"SEMAPHORE_IMPORT_TEMPORARY_BIT"

showTableSemaphoreImportFlagBits :: [(SemaphoreImportFlagBits, String)]
showTableSemaphoreImportFlagBits :: [(SemaphoreImportFlagBits, String)]
showTableSemaphoreImportFlagBits = [(SemaphoreImportFlagBits
SEMAPHORE_IMPORT_TEMPORARY_BIT, String
"")]

instance Show SemaphoreImportFlagBits where
  showsPrec :: Int -> SemaphoreImportFlagBits -> ShowS
showsPrec =
    forall a i.
Eq a =>
String
-> [(a, String)]
-> String
-> (a -> i)
-> (i -> ShowS)
-> Int
-> a
-> ShowS
enumShowsPrec
      String
enumPrefixSemaphoreImportFlagBits
      [(SemaphoreImportFlagBits, String)]
showTableSemaphoreImportFlagBits
      String
conNameSemaphoreImportFlagBits
      (\(SemaphoreImportFlagBits Flags
x) -> Flags
x)
      (\Flags
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 Flags
x)

instance Read SemaphoreImportFlagBits where
  readPrec :: ReadPrec SemaphoreImportFlagBits
readPrec =
    forall i a.
Read i =>
String -> [(a, String)] -> String -> (i -> a) -> ReadPrec a
enumReadPrec
      String
enumPrefixSemaphoreImportFlagBits
      [(SemaphoreImportFlagBits, String)]
showTableSemaphoreImportFlagBits
      String
conNameSemaphoreImportFlagBits
      Flags -> SemaphoreImportFlagBits
SemaphoreImportFlagBits