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