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