{-# language CPP #-}
module Vulkan.Core10.Enums.LogicOp (LogicOp( LOGIC_OP_CLEAR
, LOGIC_OP_AND
, LOGIC_OP_AND_REVERSE
, LOGIC_OP_COPY
, LOGIC_OP_AND_INVERTED
, LOGIC_OP_NO_OP
, LOGIC_OP_XOR
, LOGIC_OP_OR
, LOGIC_OP_NOR
, LOGIC_OP_EQUIVALENT
, LOGIC_OP_INVERT
, LOGIC_OP_OR_REVERSE
, LOGIC_OP_COPY_INVERTED
, LOGIC_OP_OR_INVERTED
, LOGIC_OP_NAND
, LOGIC_OP_SET
, ..
)) where
import Vulkan.Internal.Utils (enumReadPrec)
import Vulkan.Internal.Utils (enumShowsPrec)
import GHC.Show (showsPrec)
import Vulkan.Zero (Zero)
import Foreign.Storable (Storable)
import Data.Int (Int32)
import GHC.Read (Read(readPrec))
import GHC.Show (Show(showsPrec))
newtype LogicOp = LogicOp Int32
deriving newtype (LogicOp -> LogicOp -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LogicOp -> LogicOp -> Bool
$c/= :: LogicOp -> LogicOp -> Bool
== :: LogicOp -> LogicOp -> Bool
$c== :: LogicOp -> LogicOp -> Bool
Eq, Eq LogicOp
LogicOp -> LogicOp -> Bool
LogicOp -> LogicOp -> Ordering
LogicOp -> LogicOp -> LogicOp
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 :: LogicOp -> LogicOp -> LogicOp
$cmin :: LogicOp -> LogicOp -> LogicOp
max :: LogicOp -> LogicOp -> LogicOp
$cmax :: LogicOp -> LogicOp -> LogicOp
>= :: LogicOp -> LogicOp -> Bool
$c>= :: LogicOp -> LogicOp -> Bool
> :: LogicOp -> LogicOp -> Bool
$c> :: LogicOp -> LogicOp -> Bool
<= :: LogicOp -> LogicOp -> Bool
$c<= :: LogicOp -> LogicOp -> Bool
< :: LogicOp -> LogicOp -> Bool
$c< :: LogicOp -> LogicOp -> Bool
compare :: LogicOp -> LogicOp -> Ordering
$ccompare :: LogicOp -> LogicOp -> Ordering
Ord, Ptr LogicOp -> IO LogicOp
Ptr LogicOp -> Int -> IO LogicOp
Ptr LogicOp -> Int -> LogicOp -> IO ()
Ptr LogicOp -> LogicOp -> IO ()
LogicOp -> Int
forall b. Ptr b -> Int -> IO LogicOp
forall b. Ptr b -> Int -> LogicOp -> 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 LogicOp -> LogicOp -> IO ()
$cpoke :: Ptr LogicOp -> LogicOp -> IO ()
peek :: Ptr LogicOp -> IO LogicOp
$cpeek :: Ptr LogicOp -> IO LogicOp
pokeByteOff :: forall b. Ptr b -> Int -> LogicOp -> IO ()
$cpokeByteOff :: forall b. Ptr b -> Int -> LogicOp -> IO ()
peekByteOff :: forall b. Ptr b -> Int -> IO LogicOp
$cpeekByteOff :: forall b. Ptr b -> Int -> IO LogicOp
pokeElemOff :: Ptr LogicOp -> Int -> LogicOp -> IO ()
$cpokeElemOff :: Ptr LogicOp -> Int -> LogicOp -> IO ()
peekElemOff :: Ptr LogicOp -> Int -> IO LogicOp
$cpeekElemOff :: Ptr LogicOp -> Int -> IO LogicOp
alignment :: LogicOp -> Int
$calignment :: LogicOp -> Int
sizeOf :: LogicOp -> Int
$csizeOf :: LogicOp -> Int
Storable, LogicOp
forall a. a -> Zero a
zero :: LogicOp
$czero :: LogicOp
Zero)
pattern $bLOGIC_OP_CLEAR :: LogicOp
$mLOGIC_OP_CLEAR :: forall {r}. LogicOp -> ((# #) -> r) -> ((# #) -> r) -> r
LOGIC_OP_CLEAR = LogicOp 0
pattern $bLOGIC_OP_AND :: LogicOp
$mLOGIC_OP_AND :: forall {r}. LogicOp -> ((# #) -> r) -> ((# #) -> r) -> r
LOGIC_OP_AND = LogicOp 1
pattern $bLOGIC_OP_AND_REVERSE :: LogicOp
$mLOGIC_OP_AND_REVERSE :: forall {r}. LogicOp -> ((# #) -> r) -> ((# #) -> r) -> r
LOGIC_OP_AND_REVERSE = LogicOp 2
pattern $bLOGIC_OP_COPY :: LogicOp
$mLOGIC_OP_COPY :: forall {r}. LogicOp -> ((# #) -> r) -> ((# #) -> r) -> r
LOGIC_OP_COPY = LogicOp 3
pattern $bLOGIC_OP_AND_INVERTED :: LogicOp
$mLOGIC_OP_AND_INVERTED :: forall {r}. LogicOp -> ((# #) -> r) -> ((# #) -> r) -> r
LOGIC_OP_AND_INVERTED = LogicOp 4
pattern $bLOGIC_OP_NO_OP :: LogicOp
$mLOGIC_OP_NO_OP :: forall {r}. LogicOp -> ((# #) -> r) -> ((# #) -> r) -> r
LOGIC_OP_NO_OP = LogicOp 5
pattern $bLOGIC_OP_XOR :: LogicOp
$mLOGIC_OP_XOR :: forall {r}. LogicOp -> ((# #) -> r) -> ((# #) -> r) -> r
LOGIC_OP_XOR = LogicOp 6
pattern $bLOGIC_OP_OR :: LogicOp
$mLOGIC_OP_OR :: forall {r}. LogicOp -> ((# #) -> r) -> ((# #) -> r) -> r
LOGIC_OP_OR = LogicOp 7
pattern $bLOGIC_OP_NOR :: LogicOp
$mLOGIC_OP_NOR :: forall {r}. LogicOp -> ((# #) -> r) -> ((# #) -> r) -> r
LOGIC_OP_NOR = LogicOp 8
pattern $bLOGIC_OP_EQUIVALENT :: LogicOp
$mLOGIC_OP_EQUIVALENT :: forall {r}. LogicOp -> ((# #) -> r) -> ((# #) -> r) -> r
LOGIC_OP_EQUIVALENT = LogicOp 9
pattern $bLOGIC_OP_INVERT :: LogicOp
$mLOGIC_OP_INVERT :: forall {r}. LogicOp -> ((# #) -> r) -> ((# #) -> r) -> r
LOGIC_OP_INVERT = LogicOp 10
pattern $bLOGIC_OP_OR_REVERSE :: LogicOp
$mLOGIC_OP_OR_REVERSE :: forall {r}. LogicOp -> ((# #) -> r) -> ((# #) -> r) -> r
LOGIC_OP_OR_REVERSE = LogicOp 11
pattern $bLOGIC_OP_COPY_INVERTED :: LogicOp
$mLOGIC_OP_COPY_INVERTED :: forall {r}. LogicOp -> ((# #) -> r) -> ((# #) -> r) -> r
LOGIC_OP_COPY_INVERTED = LogicOp 12
pattern $bLOGIC_OP_OR_INVERTED :: LogicOp
$mLOGIC_OP_OR_INVERTED :: forall {r}. LogicOp -> ((# #) -> r) -> ((# #) -> r) -> r
LOGIC_OP_OR_INVERTED = LogicOp 13
pattern $bLOGIC_OP_NAND :: LogicOp
$mLOGIC_OP_NAND :: forall {r}. LogicOp -> ((# #) -> r) -> ((# #) -> r) -> r
LOGIC_OP_NAND = LogicOp 14
pattern $bLOGIC_OP_SET :: LogicOp
$mLOGIC_OP_SET :: forall {r}. LogicOp -> ((# #) -> r) -> ((# #) -> r) -> r
LOGIC_OP_SET = LogicOp 15
{-# COMPLETE
LOGIC_OP_CLEAR
, LOGIC_OP_AND
, LOGIC_OP_AND_REVERSE
, LOGIC_OP_COPY
, LOGIC_OP_AND_INVERTED
, LOGIC_OP_NO_OP
, LOGIC_OP_XOR
, LOGIC_OP_OR
, LOGIC_OP_NOR
, LOGIC_OP_EQUIVALENT
, LOGIC_OP_INVERT
, LOGIC_OP_OR_REVERSE
, LOGIC_OP_COPY_INVERTED
, LOGIC_OP_OR_INVERTED
, LOGIC_OP_NAND
, LOGIC_OP_SET ::
LogicOp
#-}
conNameLogicOp :: String
conNameLogicOp :: String
conNameLogicOp = String
"LogicOp"
enumPrefixLogicOp :: String
enumPrefixLogicOp :: String
enumPrefixLogicOp = String
"LOGIC_OP_"
showTableLogicOp :: [(LogicOp, String)]
showTableLogicOp :: [(LogicOp, String)]
showTableLogicOp =
[ (LogicOp
LOGIC_OP_CLEAR, String
"CLEAR")
, (LogicOp
LOGIC_OP_AND, String
"AND")
, (LogicOp
LOGIC_OP_AND_REVERSE, String
"AND_REVERSE")
, (LogicOp
LOGIC_OP_COPY, String
"COPY")
, (LogicOp
LOGIC_OP_AND_INVERTED, String
"AND_INVERTED")
, (LogicOp
LOGIC_OP_NO_OP, String
"NO_OP")
, (LogicOp
LOGIC_OP_XOR, String
"XOR")
, (LogicOp
LOGIC_OP_OR, String
"OR")
, (LogicOp
LOGIC_OP_NOR, String
"NOR")
, (LogicOp
LOGIC_OP_EQUIVALENT, String
"EQUIVALENT")
, (LogicOp
LOGIC_OP_INVERT, String
"INVERT")
, (LogicOp
LOGIC_OP_OR_REVERSE, String
"OR_REVERSE")
, (LogicOp
LOGIC_OP_COPY_INVERTED, String
"COPY_INVERTED")
, (LogicOp
LOGIC_OP_OR_INVERTED, String
"OR_INVERTED")
, (LogicOp
LOGIC_OP_NAND, String
"NAND")
, (LogicOp
LOGIC_OP_SET, String
"SET")
]
instance Show LogicOp where
showsPrec :: Int -> LogicOp -> ShowS
showsPrec =
forall a i.
Eq a =>
String
-> [(a, String)]
-> String
-> (a -> i)
-> (i -> ShowS)
-> Int
-> a
-> ShowS
enumShowsPrec
String
enumPrefixLogicOp
[(LogicOp, String)]
showTableLogicOp
String
conNameLogicOp
(\(LogicOp Int32
x) -> Int32
x)
(forall a. Show a => Int -> a -> ShowS
showsPrec Int
11)
instance Read LogicOp where
readPrec :: ReadPrec LogicOp
readPrec =
forall i a.
Read i =>
String -> [(a, String)] -> String -> (i -> a) -> ReadPrec a
enumReadPrec
String
enumPrefixLogicOp
[(LogicOp, String)]
showTableLogicOp
String
conNameLogicOp
Int32 -> LogicOp
LogicOp