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