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



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