{-# language CPP #-}
module Vulkan.Core10.Enums.PipelineInputAssemblyStateCreateFlags  (PipelineInputAssemblyStateCreateFlags(..)) where

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 Data.Bits (Bits)
import Foreign.Storable (Storable)
import GHC.Read (Read(readPrec))
import Text.Read.Lex (Lexeme(Ident))
import Vulkan.Core10.BaseType (Flags)
import Vulkan.Zero (Zero)
-- | VkPipelineInputAssemblyStateCreateFlags - Reserved for future use
--
-- = Description
--
-- 'PipelineInputAssemblyStateCreateFlags' is a bitmask type for setting a
-- mask, but is currently reserved for future use.
--
-- = See Also
--
-- 'Vulkan.Core10.Pipeline.PipelineInputAssemblyStateCreateInfo'
newtype PipelineInputAssemblyStateCreateFlags = PipelineInputAssemblyStateCreateFlags Flags
  deriving newtype (PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags -> Bool
(PipelineInputAssemblyStateCreateFlags
 -> PipelineInputAssemblyStateCreateFlags -> Bool)
-> (PipelineInputAssemblyStateCreateFlags
    -> PipelineInputAssemblyStateCreateFlags -> Bool)
-> Eq PipelineInputAssemblyStateCreateFlags
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags -> Bool
$c/= :: PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags -> Bool
== :: PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags -> Bool
$c== :: PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags -> Bool
Eq, Eq PipelineInputAssemblyStateCreateFlags
Eq PipelineInputAssemblyStateCreateFlags =>
(PipelineInputAssemblyStateCreateFlags
 -> PipelineInputAssemblyStateCreateFlags -> Ordering)
-> (PipelineInputAssemblyStateCreateFlags
    -> PipelineInputAssemblyStateCreateFlags -> Bool)
-> (PipelineInputAssemblyStateCreateFlags
    -> PipelineInputAssemblyStateCreateFlags -> Bool)
-> (PipelineInputAssemblyStateCreateFlags
    -> PipelineInputAssemblyStateCreateFlags -> Bool)
-> (PipelineInputAssemblyStateCreateFlags
    -> PipelineInputAssemblyStateCreateFlags -> Bool)
-> (PipelineInputAssemblyStateCreateFlags
    -> PipelineInputAssemblyStateCreateFlags
    -> PipelineInputAssemblyStateCreateFlags)
-> (PipelineInputAssemblyStateCreateFlags
    -> PipelineInputAssemblyStateCreateFlags
    -> PipelineInputAssemblyStateCreateFlags)
-> Ord PipelineInputAssemblyStateCreateFlags
PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags -> Bool
PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags -> Ordering
PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags
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 :: PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags
$cmin :: PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags
max :: PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags
$cmax :: PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags
>= :: PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags -> Bool
$c>= :: PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags -> Bool
> :: PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags -> Bool
$c> :: PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags -> Bool
<= :: PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags -> Bool
$c<= :: PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags -> Bool
< :: PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags -> Bool
$c< :: PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags -> Bool
compare :: PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags -> Ordering
$ccompare :: PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags -> Ordering
$cp1Ord :: Eq PipelineInputAssemblyStateCreateFlags
Ord, Ptr b -> Int -> IO PipelineInputAssemblyStateCreateFlags
Ptr b -> Int -> PipelineInputAssemblyStateCreateFlags -> IO ()
Ptr PipelineInputAssemblyStateCreateFlags
-> IO PipelineInputAssemblyStateCreateFlags
Ptr PipelineInputAssemblyStateCreateFlags
-> Int -> IO PipelineInputAssemblyStateCreateFlags
Ptr PipelineInputAssemblyStateCreateFlags
-> Int -> PipelineInputAssemblyStateCreateFlags -> IO ()
Ptr PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags -> IO ()
PipelineInputAssemblyStateCreateFlags -> Int
(PipelineInputAssemblyStateCreateFlags -> Int)
-> (PipelineInputAssemblyStateCreateFlags -> Int)
-> (Ptr PipelineInputAssemblyStateCreateFlags
    -> Int -> IO PipelineInputAssemblyStateCreateFlags)
-> (Ptr PipelineInputAssemblyStateCreateFlags
    -> Int -> PipelineInputAssemblyStateCreateFlags -> IO ())
-> (forall b.
    Ptr b -> Int -> IO PipelineInputAssemblyStateCreateFlags)
-> (forall b.
    Ptr b -> Int -> PipelineInputAssemblyStateCreateFlags -> IO ())
-> (Ptr PipelineInputAssemblyStateCreateFlags
    -> IO PipelineInputAssemblyStateCreateFlags)
-> (Ptr PipelineInputAssemblyStateCreateFlags
    -> PipelineInputAssemblyStateCreateFlags -> IO ())
-> Storable PipelineInputAssemblyStateCreateFlags
forall b. Ptr b -> Int -> IO PipelineInputAssemblyStateCreateFlags
forall b.
Ptr b -> Int -> PipelineInputAssemblyStateCreateFlags -> 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 PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags -> IO ()
$cpoke :: Ptr PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags -> IO ()
peek :: Ptr PipelineInputAssemblyStateCreateFlags
-> IO PipelineInputAssemblyStateCreateFlags
$cpeek :: Ptr PipelineInputAssemblyStateCreateFlags
-> IO PipelineInputAssemblyStateCreateFlags
pokeByteOff :: Ptr b -> Int -> PipelineInputAssemblyStateCreateFlags -> IO ()
$cpokeByteOff :: forall b.
Ptr b -> Int -> PipelineInputAssemblyStateCreateFlags -> IO ()
peekByteOff :: Ptr b -> Int -> IO PipelineInputAssemblyStateCreateFlags
$cpeekByteOff :: forall b. Ptr b -> Int -> IO PipelineInputAssemblyStateCreateFlags
pokeElemOff :: Ptr PipelineInputAssemblyStateCreateFlags
-> Int -> PipelineInputAssemblyStateCreateFlags -> IO ()
$cpokeElemOff :: Ptr PipelineInputAssemblyStateCreateFlags
-> Int -> PipelineInputAssemblyStateCreateFlags -> IO ()
peekElemOff :: Ptr PipelineInputAssemblyStateCreateFlags
-> Int -> IO PipelineInputAssemblyStateCreateFlags
$cpeekElemOff :: Ptr PipelineInputAssemblyStateCreateFlags
-> Int -> IO PipelineInputAssemblyStateCreateFlags
alignment :: PipelineInputAssemblyStateCreateFlags -> Int
$calignment :: PipelineInputAssemblyStateCreateFlags -> Int
sizeOf :: PipelineInputAssemblyStateCreateFlags -> Int
$csizeOf :: PipelineInputAssemblyStateCreateFlags -> Int
Storable, PipelineInputAssemblyStateCreateFlags
PipelineInputAssemblyStateCreateFlags
-> Zero PipelineInputAssemblyStateCreateFlags
forall a. a -> Zero a
zero :: PipelineInputAssemblyStateCreateFlags
$czero :: PipelineInputAssemblyStateCreateFlags
Zero, Eq PipelineInputAssemblyStateCreateFlags
PipelineInputAssemblyStateCreateFlags
Eq PipelineInputAssemblyStateCreateFlags =>
(PipelineInputAssemblyStateCreateFlags
 -> PipelineInputAssemblyStateCreateFlags
 -> PipelineInputAssemblyStateCreateFlags)
-> (PipelineInputAssemblyStateCreateFlags
    -> PipelineInputAssemblyStateCreateFlags
    -> PipelineInputAssemblyStateCreateFlags)
-> (PipelineInputAssemblyStateCreateFlags
    -> PipelineInputAssemblyStateCreateFlags
    -> PipelineInputAssemblyStateCreateFlags)
-> (PipelineInputAssemblyStateCreateFlags
    -> PipelineInputAssemblyStateCreateFlags)
-> (PipelineInputAssemblyStateCreateFlags
    -> Int -> PipelineInputAssemblyStateCreateFlags)
-> (PipelineInputAssemblyStateCreateFlags
    -> Int -> PipelineInputAssemblyStateCreateFlags)
-> PipelineInputAssemblyStateCreateFlags
-> (Int -> PipelineInputAssemblyStateCreateFlags)
-> (PipelineInputAssemblyStateCreateFlags
    -> Int -> PipelineInputAssemblyStateCreateFlags)
-> (PipelineInputAssemblyStateCreateFlags
    -> Int -> PipelineInputAssemblyStateCreateFlags)
-> (PipelineInputAssemblyStateCreateFlags
    -> Int -> PipelineInputAssemblyStateCreateFlags)
-> (PipelineInputAssemblyStateCreateFlags -> Int -> Bool)
-> (PipelineInputAssemblyStateCreateFlags -> Maybe Int)
-> (PipelineInputAssemblyStateCreateFlags -> Int)
-> (PipelineInputAssemblyStateCreateFlags -> Bool)
-> (PipelineInputAssemblyStateCreateFlags
    -> Int -> PipelineInputAssemblyStateCreateFlags)
-> (PipelineInputAssemblyStateCreateFlags
    -> Int -> PipelineInputAssemblyStateCreateFlags)
-> (PipelineInputAssemblyStateCreateFlags
    -> Int -> PipelineInputAssemblyStateCreateFlags)
-> (PipelineInputAssemblyStateCreateFlags
    -> Int -> PipelineInputAssemblyStateCreateFlags)
-> (PipelineInputAssemblyStateCreateFlags
    -> Int -> PipelineInputAssemblyStateCreateFlags)
-> (PipelineInputAssemblyStateCreateFlags
    -> Int -> PipelineInputAssemblyStateCreateFlags)
-> (PipelineInputAssemblyStateCreateFlags -> Int)
-> Bits PipelineInputAssemblyStateCreateFlags
Int -> PipelineInputAssemblyStateCreateFlags
PipelineInputAssemblyStateCreateFlags -> Bool
PipelineInputAssemblyStateCreateFlags -> Int
PipelineInputAssemblyStateCreateFlags -> Maybe Int
PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags
PipelineInputAssemblyStateCreateFlags -> Int -> Bool
PipelineInputAssemblyStateCreateFlags
-> Int -> PipelineInputAssemblyStateCreateFlags
PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags
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 :: PipelineInputAssemblyStateCreateFlags -> Int
$cpopCount :: PipelineInputAssemblyStateCreateFlags -> Int
rotateR :: PipelineInputAssemblyStateCreateFlags
-> Int -> PipelineInputAssemblyStateCreateFlags
$crotateR :: PipelineInputAssemblyStateCreateFlags
-> Int -> PipelineInputAssemblyStateCreateFlags
rotateL :: PipelineInputAssemblyStateCreateFlags
-> Int -> PipelineInputAssemblyStateCreateFlags
$crotateL :: PipelineInputAssemblyStateCreateFlags
-> Int -> PipelineInputAssemblyStateCreateFlags
unsafeShiftR :: PipelineInputAssemblyStateCreateFlags
-> Int -> PipelineInputAssemblyStateCreateFlags
$cunsafeShiftR :: PipelineInputAssemblyStateCreateFlags
-> Int -> PipelineInputAssemblyStateCreateFlags
shiftR :: PipelineInputAssemblyStateCreateFlags
-> Int -> PipelineInputAssemblyStateCreateFlags
$cshiftR :: PipelineInputAssemblyStateCreateFlags
-> Int -> PipelineInputAssemblyStateCreateFlags
unsafeShiftL :: PipelineInputAssemblyStateCreateFlags
-> Int -> PipelineInputAssemblyStateCreateFlags
$cunsafeShiftL :: PipelineInputAssemblyStateCreateFlags
-> Int -> PipelineInputAssemblyStateCreateFlags
shiftL :: PipelineInputAssemblyStateCreateFlags
-> Int -> PipelineInputAssemblyStateCreateFlags
$cshiftL :: PipelineInputAssemblyStateCreateFlags
-> Int -> PipelineInputAssemblyStateCreateFlags
isSigned :: PipelineInputAssemblyStateCreateFlags -> Bool
$cisSigned :: PipelineInputAssemblyStateCreateFlags -> Bool
bitSize :: PipelineInputAssemblyStateCreateFlags -> Int
$cbitSize :: PipelineInputAssemblyStateCreateFlags -> Int
bitSizeMaybe :: PipelineInputAssemblyStateCreateFlags -> Maybe Int
$cbitSizeMaybe :: PipelineInputAssemblyStateCreateFlags -> Maybe Int
testBit :: PipelineInputAssemblyStateCreateFlags -> Int -> Bool
$ctestBit :: PipelineInputAssemblyStateCreateFlags -> Int -> Bool
complementBit :: PipelineInputAssemblyStateCreateFlags
-> Int -> PipelineInputAssemblyStateCreateFlags
$ccomplementBit :: PipelineInputAssemblyStateCreateFlags
-> Int -> PipelineInputAssemblyStateCreateFlags
clearBit :: PipelineInputAssemblyStateCreateFlags
-> Int -> PipelineInputAssemblyStateCreateFlags
$cclearBit :: PipelineInputAssemblyStateCreateFlags
-> Int -> PipelineInputAssemblyStateCreateFlags
setBit :: PipelineInputAssemblyStateCreateFlags
-> Int -> PipelineInputAssemblyStateCreateFlags
$csetBit :: PipelineInputAssemblyStateCreateFlags
-> Int -> PipelineInputAssemblyStateCreateFlags
bit :: Int -> PipelineInputAssemblyStateCreateFlags
$cbit :: Int -> PipelineInputAssemblyStateCreateFlags
zeroBits :: PipelineInputAssemblyStateCreateFlags
$czeroBits :: PipelineInputAssemblyStateCreateFlags
rotate :: PipelineInputAssemblyStateCreateFlags
-> Int -> PipelineInputAssemblyStateCreateFlags
$crotate :: PipelineInputAssemblyStateCreateFlags
-> Int -> PipelineInputAssemblyStateCreateFlags
shift :: PipelineInputAssemblyStateCreateFlags
-> Int -> PipelineInputAssemblyStateCreateFlags
$cshift :: PipelineInputAssemblyStateCreateFlags
-> Int -> PipelineInputAssemblyStateCreateFlags
complement :: PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags
$ccomplement :: PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags
xor :: PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags
$cxor :: PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags
.|. :: PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags
$c.|. :: PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags
.&. :: PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags
$c.&. :: PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags
-> PipelineInputAssemblyStateCreateFlags
$cp1Bits :: Eq PipelineInputAssemblyStateCreateFlags
Bits)



instance Show PipelineInputAssemblyStateCreateFlags where
  showsPrec :: Int -> PipelineInputAssemblyStateCreateFlags -> ShowS
showsPrec p :: Int
p = \case
    PipelineInputAssemblyStateCreateFlags x :: Flags
x -> Bool -> ShowS -> ShowS
showParen (Int
p Int -> Int -> Bool
forall a. Ord a => a -> a -> Bool
>= 11) (String -> ShowS
showString "PipelineInputAssemblyStateCreateFlags 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 PipelineInputAssemblyStateCreateFlags where
  readPrec :: ReadPrec PipelineInputAssemblyStateCreateFlags
readPrec = ReadPrec PipelineInputAssemblyStateCreateFlags
-> ReadPrec PipelineInputAssemblyStateCreateFlags
forall a. ReadPrec a -> ReadPrec a
parens ([(String, ReadPrec PipelineInputAssemblyStateCreateFlags)]
-> ReadPrec PipelineInputAssemblyStateCreateFlags
forall a. [(String, ReadPrec a)] -> ReadPrec a
choose []
                     ReadPrec PipelineInputAssemblyStateCreateFlags
-> ReadPrec PipelineInputAssemblyStateCreateFlags
-> ReadPrec PipelineInputAssemblyStateCreateFlags
forall a. ReadPrec a -> ReadPrec a -> ReadPrec a
+++
                     Int
-> ReadPrec PipelineInputAssemblyStateCreateFlags
-> ReadPrec PipelineInputAssemblyStateCreateFlags
forall a. Int -> ReadPrec a -> ReadPrec a
prec 10 (do
                       Lexeme -> ReadPrec ()
expectP (String -> Lexeme
Ident "PipelineInputAssemblyStateCreateFlags")
                       Flags
v <- ReadPrec Flags -> ReadPrec Flags
forall a. ReadPrec a -> ReadPrec a
step ReadPrec Flags
forall a. Read a => ReadPrec a
readPrec
                       PipelineInputAssemblyStateCreateFlags
-> ReadPrec PipelineInputAssemblyStateCreateFlags
forall (f :: * -> *) a. Applicative f => a -> f a
pure (Flags -> PipelineInputAssemblyStateCreateFlags
PipelineInputAssemblyStateCreateFlags Flags
v)))