{-# language CPP #-}
-- No documentation found for Chapter "FenceCreateFlagBits"
module Vulkan.Core10.Enums.FenceCreateFlagBits  ( FenceCreateFlags
                                                , FenceCreateFlagBits( FENCE_CREATE_SIGNALED_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 FenceCreateFlags = FenceCreateFlagBits

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

-- | 'FENCE_CREATE_SIGNALED_BIT' specifies that the fence object is created
-- in the signaled state. Otherwise, it is created in the unsignaled state.
pattern $bFENCE_CREATE_SIGNALED_BIT :: FenceCreateFlagBits
$mFENCE_CREATE_SIGNALED_BIT :: forall {r}.
FenceCreateFlagBits -> ((# #) -> r) -> ((# #) -> r) -> r
FENCE_CREATE_SIGNALED_BIT = FenceCreateFlagBits 0x00000001

conNameFenceCreateFlagBits :: String
conNameFenceCreateFlagBits :: String
conNameFenceCreateFlagBits = String
"FenceCreateFlagBits"

enumPrefixFenceCreateFlagBits :: String
enumPrefixFenceCreateFlagBits :: String
enumPrefixFenceCreateFlagBits = String
"FENCE_CREATE_SIGNALED_BIT"

showTableFenceCreateFlagBits :: [(FenceCreateFlagBits, String)]
showTableFenceCreateFlagBits :: [(FenceCreateFlagBits, String)]
showTableFenceCreateFlagBits = [(FenceCreateFlagBits
FENCE_CREATE_SIGNALED_BIT, String
"")]

instance Show FenceCreateFlagBits where
  showsPrec :: Int -> FenceCreateFlagBits -> ShowS
showsPrec =
    forall a i.
Eq a =>
String
-> [(a, String)]
-> String
-> (a -> i)
-> (i -> ShowS)
-> Int
-> a
-> ShowS
enumShowsPrec
      String
enumPrefixFenceCreateFlagBits
      [(FenceCreateFlagBits, String)]
showTableFenceCreateFlagBits
      String
conNameFenceCreateFlagBits
      (\(FenceCreateFlagBits 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 FenceCreateFlagBits where
  readPrec :: ReadPrec FenceCreateFlagBits
readPrec =
    forall i a.
Read i =>
String -> [(a, String)] -> String -> (i -> a) -> ReadPrec a
enumReadPrec
      String
enumPrefixFenceCreateFlagBits
      [(FenceCreateFlagBits, String)]
showTableFenceCreateFlagBits
      String
conNameFenceCreateFlagBits
      Flags -> FenceCreateFlagBits
FenceCreateFlagBits