{-# language CPP #-}
module Vulkan.Core10.Enums.PipelineVertexInputStateCreateFlags (PipelineVertexInputStateCreateFlags(..)) 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.FundamentalTypes (Flags)
import Vulkan.Zero (Zero)
newtype PipelineVertexInputStateCreateFlags = PipelineVertexInputStateCreateFlags Flags
deriving newtype (PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags -> Bool
(PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags -> Bool)
-> (PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags -> Bool)
-> Eq PipelineVertexInputStateCreateFlags
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags -> Bool
$c/= :: PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags -> Bool
== :: PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags -> Bool
$c== :: PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags -> Bool
Eq, Eq PipelineVertexInputStateCreateFlags
Eq PipelineVertexInputStateCreateFlags =>
(PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags -> Ordering)
-> (PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags -> Bool)
-> (PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags -> Bool)
-> (PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags -> Bool)
-> (PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags -> Bool)
-> (PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags)
-> (PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags)
-> Ord PipelineVertexInputStateCreateFlags
PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags -> Bool
PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags -> Ordering
PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags
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 :: PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags
$cmin :: PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags
max :: PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags
$cmax :: PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags
>= :: PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags -> Bool
$c>= :: PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags -> Bool
> :: PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags -> Bool
$c> :: PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags -> Bool
<= :: PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags -> Bool
$c<= :: PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags -> Bool
< :: PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags -> Bool
$c< :: PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags -> Bool
compare :: PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags -> Ordering
$ccompare :: PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags -> Ordering
$cp1Ord :: Eq PipelineVertexInputStateCreateFlags
Ord, Ptr b -> Int -> IO PipelineVertexInputStateCreateFlags
Ptr b -> Int -> PipelineVertexInputStateCreateFlags -> IO ()
Ptr PipelineVertexInputStateCreateFlags
-> IO PipelineVertexInputStateCreateFlags
Ptr PipelineVertexInputStateCreateFlags
-> Int -> IO PipelineVertexInputStateCreateFlags
Ptr PipelineVertexInputStateCreateFlags
-> Int -> PipelineVertexInputStateCreateFlags -> IO ()
Ptr PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags -> IO ()
PipelineVertexInputStateCreateFlags -> Int
(PipelineVertexInputStateCreateFlags -> Int)
-> (PipelineVertexInputStateCreateFlags -> Int)
-> (Ptr PipelineVertexInputStateCreateFlags
-> Int -> IO PipelineVertexInputStateCreateFlags)
-> (Ptr PipelineVertexInputStateCreateFlags
-> Int -> PipelineVertexInputStateCreateFlags -> IO ())
-> (forall b.
Ptr b -> Int -> IO PipelineVertexInputStateCreateFlags)
-> (forall b.
Ptr b -> Int -> PipelineVertexInputStateCreateFlags -> IO ())
-> (Ptr PipelineVertexInputStateCreateFlags
-> IO PipelineVertexInputStateCreateFlags)
-> (Ptr PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags -> IO ())
-> Storable PipelineVertexInputStateCreateFlags
forall b. Ptr b -> Int -> IO PipelineVertexInputStateCreateFlags
forall b.
Ptr b -> Int -> PipelineVertexInputStateCreateFlags -> 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 PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags -> IO ()
$cpoke :: Ptr PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags -> IO ()
peek :: Ptr PipelineVertexInputStateCreateFlags
-> IO PipelineVertexInputStateCreateFlags
$cpeek :: Ptr PipelineVertexInputStateCreateFlags
-> IO PipelineVertexInputStateCreateFlags
pokeByteOff :: Ptr b -> Int -> PipelineVertexInputStateCreateFlags -> IO ()
$cpokeByteOff :: forall b.
Ptr b -> Int -> PipelineVertexInputStateCreateFlags -> IO ()
peekByteOff :: Ptr b -> Int -> IO PipelineVertexInputStateCreateFlags
$cpeekByteOff :: forall b. Ptr b -> Int -> IO PipelineVertexInputStateCreateFlags
pokeElemOff :: Ptr PipelineVertexInputStateCreateFlags
-> Int -> PipelineVertexInputStateCreateFlags -> IO ()
$cpokeElemOff :: Ptr PipelineVertexInputStateCreateFlags
-> Int -> PipelineVertexInputStateCreateFlags -> IO ()
peekElemOff :: Ptr PipelineVertexInputStateCreateFlags
-> Int -> IO PipelineVertexInputStateCreateFlags
$cpeekElemOff :: Ptr PipelineVertexInputStateCreateFlags
-> Int -> IO PipelineVertexInputStateCreateFlags
alignment :: PipelineVertexInputStateCreateFlags -> Int
$calignment :: PipelineVertexInputStateCreateFlags -> Int
sizeOf :: PipelineVertexInputStateCreateFlags -> Int
$csizeOf :: PipelineVertexInputStateCreateFlags -> Int
Storable, PipelineVertexInputStateCreateFlags
PipelineVertexInputStateCreateFlags
-> Zero PipelineVertexInputStateCreateFlags
forall a. a -> Zero a
zero :: PipelineVertexInputStateCreateFlags
$czero :: PipelineVertexInputStateCreateFlags
Zero, Eq PipelineVertexInputStateCreateFlags
PipelineVertexInputStateCreateFlags
Eq PipelineVertexInputStateCreateFlags =>
(PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags)
-> (PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags)
-> (PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags)
-> (PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags)
-> (PipelineVertexInputStateCreateFlags
-> Int -> PipelineVertexInputStateCreateFlags)
-> (PipelineVertexInputStateCreateFlags
-> Int -> PipelineVertexInputStateCreateFlags)
-> PipelineVertexInputStateCreateFlags
-> (Int -> PipelineVertexInputStateCreateFlags)
-> (PipelineVertexInputStateCreateFlags
-> Int -> PipelineVertexInputStateCreateFlags)
-> (PipelineVertexInputStateCreateFlags
-> Int -> PipelineVertexInputStateCreateFlags)
-> (PipelineVertexInputStateCreateFlags
-> Int -> PipelineVertexInputStateCreateFlags)
-> (PipelineVertexInputStateCreateFlags -> Int -> Bool)
-> (PipelineVertexInputStateCreateFlags -> Maybe Int)
-> (PipelineVertexInputStateCreateFlags -> Int)
-> (PipelineVertexInputStateCreateFlags -> Bool)
-> (PipelineVertexInputStateCreateFlags
-> Int -> PipelineVertexInputStateCreateFlags)
-> (PipelineVertexInputStateCreateFlags
-> Int -> PipelineVertexInputStateCreateFlags)
-> (PipelineVertexInputStateCreateFlags
-> Int -> PipelineVertexInputStateCreateFlags)
-> (PipelineVertexInputStateCreateFlags
-> Int -> PipelineVertexInputStateCreateFlags)
-> (PipelineVertexInputStateCreateFlags
-> Int -> PipelineVertexInputStateCreateFlags)
-> (PipelineVertexInputStateCreateFlags
-> Int -> PipelineVertexInputStateCreateFlags)
-> (PipelineVertexInputStateCreateFlags -> Int)
-> Bits PipelineVertexInputStateCreateFlags
Int -> PipelineVertexInputStateCreateFlags
PipelineVertexInputStateCreateFlags -> Bool
PipelineVertexInputStateCreateFlags -> Int
PipelineVertexInputStateCreateFlags -> Maybe Int
PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags
PipelineVertexInputStateCreateFlags -> Int -> Bool
PipelineVertexInputStateCreateFlags
-> Int -> PipelineVertexInputStateCreateFlags
PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags
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 :: PipelineVertexInputStateCreateFlags -> Int
$cpopCount :: PipelineVertexInputStateCreateFlags -> Int
rotateR :: PipelineVertexInputStateCreateFlags
-> Int -> PipelineVertexInputStateCreateFlags
$crotateR :: PipelineVertexInputStateCreateFlags
-> Int -> PipelineVertexInputStateCreateFlags
rotateL :: PipelineVertexInputStateCreateFlags
-> Int -> PipelineVertexInputStateCreateFlags
$crotateL :: PipelineVertexInputStateCreateFlags
-> Int -> PipelineVertexInputStateCreateFlags
unsafeShiftR :: PipelineVertexInputStateCreateFlags
-> Int -> PipelineVertexInputStateCreateFlags
$cunsafeShiftR :: PipelineVertexInputStateCreateFlags
-> Int -> PipelineVertexInputStateCreateFlags
shiftR :: PipelineVertexInputStateCreateFlags
-> Int -> PipelineVertexInputStateCreateFlags
$cshiftR :: PipelineVertexInputStateCreateFlags
-> Int -> PipelineVertexInputStateCreateFlags
unsafeShiftL :: PipelineVertexInputStateCreateFlags
-> Int -> PipelineVertexInputStateCreateFlags
$cunsafeShiftL :: PipelineVertexInputStateCreateFlags
-> Int -> PipelineVertexInputStateCreateFlags
shiftL :: PipelineVertexInputStateCreateFlags
-> Int -> PipelineVertexInputStateCreateFlags
$cshiftL :: PipelineVertexInputStateCreateFlags
-> Int -> PipelineVertexInputStateCreateFlags
isSigned :: PipelineVertexInputStateCreateFlags -> Bool
$cisSigned :: PipelineVertexInputStateCreateFlags -> Bool
bitSize :: PipelineVertexInputStateCreateFlags -> Int
$cbitSize :: PipelineVertexInputStateCreateFlags -> Int
bitSizeMaybe :: PipelineVertexInputStateCreateFlags -> Maybe Int
$cbitSizeMaybe :: PipelineVertexInputStateCreateFlags -> Maybe Int
testBit :: PipelineVertexInputStateCreateFlags -> Int -> Bool
$ctestBit :: PipelineVertexInputStateCreateFlags -> Int -> Bool
complementBit :: PipelineVertexInputStateCreateFlags
-> Int -> PipelineVertexInputStateCreateFlags
$ccomplementBit :: PipelineVertexInputStateCreateFlags
-> Int -> PipelineVertexInputStateCreateFlags
clearBit :: PipelineVertexInputStateCreateFlags
-> Int -> PipelineVertexInputStateCreateFlags
$cclearBit :: PipelineVertexInputStateCreateFlags
-> Int -> PipelineVertexInputStateCreateFlags
setBit :: PipelineVertexInputStateCreateFlags
-> Int -> PipelineVertexInputStateCreateFlags
$csetBit :: PipelineVertexInputStateCreateFlags
-> Int -> PipelineVertexInputStateCreateFlags
bit :: Int -> PipelineVertexInputStateCreateFlags
$cbit :: Int -> PipelineVertexInputStateCreateFlags
zeroBits :: PipelineVertexInputStateCreateFlags
$czeroBits :: PipelineVertexInputStateCreateFlags
rotate :: PipelineVertexInputStateCreateFlags
-> Int -> PipelineVertexInputStateCreateFlags
$crotate :: PipelineVertexInputStateCreateFlags
-> Int -> PipelineVertexInputStateCreateFlags
shift :: PipelineVertexInputStateCreateFlags
-> Int -> PipelineVertexInputStateCreateFlags
$cshift :: PipelineVertexInputStateCreateFlags
-> Int -> PipelineVertexInputStateCreateFlags
complement :: PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags
$ccomplement :: PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags
xor :: PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags
$cxor :: PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags
.|. :: PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags
$c.|. :: PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags
.&. :: PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags
$c.&. :: PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags
-> PipelineVertexInputStateCreateFlags
$cp1Bits :: Eq PipelineVertexInputStateCreateFlags
Bits)
instance Show PipelineVertexInputStateCreateFlags where
showsPrec :: Int -> PipelineVertexInputStateCreateFlags -> ShowS
showsPrec p :: Int
p = \case
PipelineVertexInputStateCreateFlags x :: Flags
x -> Bool -> ShowS -> ShowS
showParen (Int
p Int -> Int -> Bool
forall a. Ord a => a -> a -> Bool
>= 11) (String -> ShowS
showString "PipelineVertexInputStateCreateFlags 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 PipelineVertexInputStateCreateFlags where
readPrec :: ReadPrec PipelineVertexInputStateCreateFlags
readPrec = ReadPrec PipelineVertexInputStateCreateFlags
-> ReadPrec PipelineVertexInputStateCreateFlags
forall a. ReadPrec a -> ReadPrec a
parens ([(String, ReadPrec PipelineVertexInputStateCreateFlags)]
-> ReadPrec PipelineVertexInputStateCreateFlags
forall a. [(String, ReadPrec a)] -> ReadPrec a
choose []
ReadPrec PipelineVertexInputStateCreateFlags
-> ReadPrec PipelineVertexInputStateCreateFlags
-> ReadPrec PipelineVertexInputStateCreateFlags
forall a. ReadPrec a -> ReadPrec a -> ReadPrec a
+++
Int
-> ReadPrec PipelineVertexInputStateCreateFlags
-> ReadPrec PipelineVertexInputStateCreateFlags
forall a. Int -> ReadPrec a -> ReadPrec a
prec 10 (do
Lexeme -> ReadPrec ()
expectP (String -> Lexeme
Ident "PipelineVertexInputStateCreateFlags")
Flags
v <- ReadPrec Flags -> ReadPrec Flags
forall a. ReadPrec a -> ReadPrec a
step ReadPrec Flags
forall a. Read a => ReadPrec a
readPrec
PipelineVertexInputStateCreateFlags
-> ReadPrec PipelineVertexInputStateCreateFlags
forall (f :: * -> *) a. Applicative f => a -> f a
pure (Flags -> PipelineVertexInputStateCreateFlags
PipelineVertexInputStateCreateFlags Flags
v)))