{-# language CPP #-}
module Vulkan.Core10.Enums.AttachmentLoadOp (AttachmentLoadOp( ATTACHMENT_LOAD_OP_LOAD
, ATTACHMENT_LOAD_OP_CLEAR
, ATTACHMENT_LOAD_OP_DONT_CARE
, ..
)) 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 AttachmentLoadOp = AttachmentLoadOp Int32
deriving newtype (AttachmentLoadOp -> AttachmentLoadOp -> Bool
(AttachmentLoadOp -> AttachmentLoadOp -> Bool)
-> (AttachmentLoadOp -> AttachmentLoadOp -> Bool)
-> Eq AttachmentLoadOp
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AttachmentLoadOp -> AttachmentLoadOp -> Bool
$c/= :: AttachmentLoadOp -> AttachmentLoadOp -> Bool
== :: AttachmentLoadOp -> AttachmentLoadOp -> Bool
$c== :: AttachmentLoadOp -> AttachmentLoadOp -> Bool
Eq, Eq AttachmentLoadOp
Eq AttachmentLoadOp =>
(AttachmentLoadOp -> AttachmentLoadOp -> Ordering)
-> (AttachmentLoadOp -> AttachmentLoadOp -> Bool)
-> (AttachmentLoadOp -> AttachmentLoadOp -> Bool)
-> (AttachmentLoadOp -> AttachmentLoadOp -> Bool)
-> (AttachmentLoadOp -> AttachmentLoadOp -> Bool)
-> (AttachmentLoadOp -> AttachmentLoadOp -> AttachmentLoadOp)
-> (AttachmentLoadOp -> AttachmentLoadOp -> AttachmentLoadOp)
-> Ord AttachmentLoadOp
AttachmentLoadOp -> AttachmentLoadOp -> Bool
AttachmentLoadOp -> AttachmentLoadOp -> Ordering
AttachmentLoadOp -> AttachmentLoadOp -> AttachmentLoadOp
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 :: AttachmentLoadOp -> AttachmentLoadOp -> AttachmentLoadOp
$cmin :: AttachmentLoadOp -> AttachmentLoadOp -> AttachmentLoadOp
max :: AttachmentLoadOp -> AttachmentLoadOp -> AttachmentLoadOp
$cmax :: AttachmentLoadOp -> AttachmentLoadOp -> AttachmentLoadOp
>= :: AttachmentLoadOp -> AttachmentLoadOp -> Bool
$c>= :: AttachmentLoadOp -> AttachmentLoadOp -> Bool
> :: AttachmentLoadOp -> AttachmentLoadOp -> Bool
$c> :: AttachmentLoadOp -> AttachmentLoadOp -> Bool
<= :: AttachmentLoadOp -> AttachmentLoadOp -> Bool
$c<= :: AttachmentLoadOp -> AttachmentLoadOp -> Bool
< :: AttachmentLoadOp -> AttachmentLoadOp -> Bool
$c< :: AttachmentLoadOp -> AttachmentLoadOp -> Bool
compare :: AttachmentLoadOp -> AttachmentLoadOp -> Ordering
$ccompare :: AttachmentLoadOp -> AttachmentLoadOp -> Ordering
$cp1Ord :: Eq AttachmentLoadOp
Ord, Ptr b -> Int -> IO AttachmentLoadOp
Ptr b -> Int -> AttachmentLoadOp -> IO ()
Ptr AttachmentLoadOp -> IO AttachmentLoadOp
Ptr AttachmentLoadOp -> Int -> IO AttachmentLoadOp
Ptr AttachmentLoadOp -> Int -> AttachmentLoadOp -> IO ()
Ptr AttachmentLoadOp -> AttachmentLoadOp -> IO ()
AttachmentLoadOp -> Int
(AttachmentLoadOp -> Int)
-> (AttachmentLoadOp -> Int)
-> (Ptr AttachmentLoadOp -> Int -> IO AttachmentLoadOp)
-> (Ptr AttachmentLoadOp -> Int -> AttachmentLoadOp -> IO ())
-> (forall b. Ptr b -> Int -> IO AttachmentLoadOp)
-> (forall b. Ptr b -> Int -> AttachmentLoadOp -> IO ())
-> (Ptr AttachmentLoadOp -> IO AttachmentLoadOp)
-> (Ptr AttachmentLoadOp -> AttachmentLoadOp -> IO ())
-> Storable AttachmentLoadOp
forall b. Ptr b -> Int -> IO AttachmentLoadOp
forall b. Ptr b -> Int -> AttachmentLoadOp -> 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 AttachmentLoadOp -> AttachmentLoadOp -> IO ()
$cpoke :: Ptr AttachmentLoadOp -> AttachmentLoadOp -> IO ()
peek :: Ptr AttachmentLoadOp -> IO AttachmentLoadOp
$cpeek :: Ptr AttachmentLoadOp -> IO AttachmentLoadOp
pokeByteOff :: Ptr b -> Int -> AttachmentLoadOp -> IO ()
$cpokeByteOff :: forall b. Ptr b -> Int -> AttachmentLoadOp -> IO ()
peekByteOff :: Ptr b -> Int -> IO AttachmentLoadOp
$cpeekByteOff :: forall b. Ptr b -> Int -> IO AttachmentLoadOp
pokeElemOff :: Ptr AttachmentLoadOp -> Int -> AttachmentLoadOp -> IO ()
$cpokeElemOff :: Ptr AttachmentLoadOp -> Int -> AttachmentLoadOp -> IO ()
peekElemOff :: Ptr AttachmentLoadOp -> Int -> IO AttachmentLoadOp
$cpeekElemOff :: Ptr AttachmentLoadOp -> Int -> IO AttachmentLoadOp
alignment :: AttachmentLoadOp -> Int
$calignment :: AttachmentLoadOp -> Int
sizeOf :: AttachmentLoadOp -> Int
$csizeOf :: AttachmentLoadOp -> Int
Storable, AttachmentLoadOp
AttachmentLoadOp -> Zero AttachmentLoadOp
forall a. a -> Zero a
zero :: AttachmentLoadOp
$czero :: AttachmentLoadOp
Zero)
pattern $bATTACHMENT_LOAD_OP_LOAD :: AttachmentLoadOp
$mATTACHMENT_LOAD_OP_LOAD :: forall r. AttachmentLoadOp -> (Void# -> r) -> (Void# -> r) -> r
ATTACHMENT_LOAD_OP_LOAD = AttachmentLoadOp 0
pattern $bATTACHMENT_LOAD_OP_CLEAR :: AttachmentLoadOp
$mATTACHMENT_LOAD_OP_CLEAR :: forall r. AttachmentLoadOp -> (Void# -> r) -> (Void# -> r) -> r
ATTACHMENT_LOAD_OP_CLEAR = AttachmentLoadOp 1
pattern $bATTACHMENT_LOAD_OP_DONT_CARE :: AttachmentLoadOp
$mATTACHMENT_LOAD_OP_DONT_CARE :: forall r. AttachmentLoadOp -> (Void# -> r) -> (Void# -> r) -> r
ATTACHMENT_LOAD_OP_DONT_CARE = AttachmentLoadOp 2
{-# complete ATTACHMENT_LOAD_OP_LOAD,
ATTACHMENT_LOAD_OP_CLEAR,
ATTACHMENT_LOAD_OP_DONT_CARE :: AttachmentLoadOp #-}
conNameAttachmentLoadOp :: String
conNameAttachmentLoadOp :: String
conNameAttachmentLoadOp = "AttachmentLoadOp"
enumPrefixAttachmentLoadOp :: String
enumPrefixAttachmentLoadOp :: String
enumPrefixAttachmentLoadOp = "ATTACHMENT_LOAD_OP_"
showTableAttachmentLoadOp :: [(AttachmentLoadOp, String)]
showTableAttachmentLoadOp :: [(AttachmentLoadOp, String)]
showTableAttachmentLoadOp =
[(AttachmentLoadOp
ATTACHMENT_LOAD_OP_LOAD, "LOAD"), (AttachmentLoadOp
ATTACHMENT_LOAD_OP_CLEAR, "CLEAR"), (AttachmentLoadOp
ATTACHMENT_LOAD_OP_DONT_CARE, "DONT_CARE")]
instance Show AttachmentLoadOp where
showsPrec :: Int -> AttachmentLoadOp -> ShowS
showsPrec = String
-> [(AttachmentLoadOp, String)]
-> String
-> (AttachmentLoadOp -> Int32)
-> (Int32 -> ShowS)
-> Int
-> AttachmentLoadOp
-> ShowS
forall a i.
Eq a =>
String
-> [(a, String)]
-> String
-> (a -> i)
-> (i -> ShowS)
-> Int
-> a
-> ShowS
enumShowsPrec String
enumPrefixAttachmentLoadOp
[(AttachmentLoadOp, String)]
showTableAttachmentLoadOp
String
conNameAttachmentLoadOp
(\(AttachmentLoadOp x :: Int32
x) -> Int32
x)
(Int -> Int32 -> ShowS
forall a. Show a => Int -> a -> ShowS
showsPrec 11)
instance Read AttachmentLoadOp where
readPrec :: ReadPrec AttachmentLoadOp
readPrec = String
-> [(AttachmentLoadOp, String)]
-> String
-> (Int32 -> AttachmentLoadOp)
-> ReadPrec AttachmentLoadOp
forall i a.
Read i =>
String -> [(a, String)] -> String -> (i -> a) -> ReadPrec a
enumReadPrec String
enumPrefixAttachmentLoadOp [(AttachmentLoadOp, String)]
showTableAttachmentLoadOp String
conNameAttachmentLoadOp Int32 -> AttachmentLoadOp
AttachmentLoadOp