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