{-# language CPP #-}
module Vulkan.Core10.Enums.AttachmentStoreOp (AttachmentStoreOp( ATTACHMENT_STORE_OP_STORE
, ATTACHMENT_STORE_OP_DONT_CARE
, ATTACHMENT_STORE_OP_NONE
, ..
)) 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 AttachmentStoreOp = AttachmentStoreOp Int32
deriving newtype (AttachmentStoreOp -> AttachmentStoreOp -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AttachmentStoreOp -> AttachmentStoreOp -> Bool
$c/= :: AttachmentStoreOp -> AttachmentStoreOp -> Bool
== :: AttachmentStoreOp -> AttachmentStoreOp -> Bool
$c== :: AttachmentStoreOp -> AttachmentStoreOp -> Bool
Eq, Eq AttachmentStoreOp
AttachmentStoreOp -> AttachmentStoreOp -> Bool
AttachmentStoreOp -> AttachmentStoreOp -> Ordering
AttachmentStoreOp -> AttachmentStoreOp -> AttachmentStoreOp
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 :: AttachmentStoreOp -> AttachmentStoreOp -> AttachmentStoreOp
$cmin :: AttachmentStoreOp -> AttachmentStoreOp -> AttachmentStoreOp
max :: AttachmentStoreOp -> AttachmentStoreOp -> AttachmentStoreOp
$cmax :: AttachmentStoreOp -> AttachmentStoreOp -> AttachmentStoreOp
>= :: AttachmentStoreOp -> AttachmentStoreOp -> Bool
$c>= :: AttachmentStoreOp -> AttachmentStoreOp -> Bool
> :: AttachmentStoreOp -> AttachmentStoreOp -> Bool
$c> :: AttachmentStoreOp -> AttachmentStoreOp -> Bool
<= :: AttachmentStoreOp -> AttachmentStoreOp -> Bool
$c<= :: AttachmentStoreOp -> AttachmentStoreOp -> Bool
< :: AttachmentStoreOp -> AttachmentStoreOp -> Bool
$c< :: AttachmentStoreOp -> AttachmentStoreOp -> Bool
compare :: AttachmentStoreOp -> AttachmentStoreOp -> Ordering
$ccompare :: AttachmentStoreOp -> AttachmentStoreOp -> Ordering
Ord, Ptr AttachmentStoreOp -> IO AttachmentStoreOp
Ptr AttachmentStoreOp -> Int -> IO AttachmentStoreOp
Ptr AttachmentStoreOp -> Int -> AttachmentStoreOp -> IO ()
Ptr AttachmentStoreOp -> AttachmentStoreOp -> IO ()
AttachmentStoreOp -> Int
forall b. Ptr b -> Int -> IO AttachmentStoreOp
forall b. Ptr b -> Int -> AttachmentStoreOp -> 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 AttachmentStoreOp -> AttachmentStoreOp -> IO ()
$cpoke :: Ptr AttachmentStoreOp -> AttachmentStoreOp -> IO ()
peek :: Ptr AttachmentStoreOp -> IO AttachmentStoreOp
$cpeek :: Ptr AttachmentStoreOp -> IO AttachmentStoreOp
pokeByteOff :: forall b. Ptr b -> Int -> AttachmentStoreOp -> IO ()
$cpokeByteOff :: forall b. Ptr b -> Int -> AttachmentStoreOp -> IO ()
peekByteOff :: forall b. Ptr b -> Int -> IO AttachmentStoreOp
$cpeekByteOff :: forall b. Ptr b -> Int -> IO AttachmentStoreOp
pokeElemOff :: Ptr AttachmentStoreOp -> Int -> AttachmentStoreOp -> IO ()
$cpokeElemOff :: Ptr AttachmentStoreOp -> Int -> AttachmentStoreOp -> IO ()
peekElemOff :: Ptr AttachmentStoreOp -> Int -> IO AttachmentStoreOp
$cpeekElemOff :: Ptr AttachmentStoreOp -> Int -> IO AttachmentStoreOp
alignment :: AttachmentStoreOp -> Int
$calignment :: AttachmentStoreOp -> Int
sizeOf :: AttachmentStoreOp -> Int
$csizeOf :: AttachmentStoreOp -> Int
Storable, AttachmentStoreOp
forall a. a -> Zero a
zero :: AttachmentStoreOp
$czero :: AttachmentStoreOp
Zero)
pattern $bATTACHMENT_STORE_OP_STORE :: AttachmentStoreOp
$mATTACHMENT_STORE_OP_STORE :: forall {r}. AttachmentStoreOp -> ((# #) -> r) -> ((# #) -> r) -> r
ATTACHMENT_STORE_OP_STORE = AttachmentStoreOp 0
pattern $bATTACHMENT_STORE_OP_DONT_CARE :: AttachmentStoreOp
$mATTACHMENT_STORE_OP_DONT_CARE :: forall {r}. AttachmentStoreOp -> ((# #) -> r) -> ((# #) -> r) -> r
ATTACHMENT_STORE_OP_DONT_CARE = AttachmentStoreOp 1
pattern $bATTACHMENT_STORE_OP_NONE :: AttachmentStoreOp
$mATTACHMENT_STORE_OP_NONE :: forall {r}. AttachmentStoreOp -> ((# #) -> r) -> ((# #) -> r) -> r
ATTACHMENT_STORE_OP_NONE = AttachmentStoreOp 1000301000
{-# COMPLETE
ATTACHMENT_STORE_OP_STORE
, ATTACHMENT_STORE_OP_DONT_CARE
, ATTACHMENT_STORE_OP_NONE ::
AttachmentStoreOp
#-}
conNameAttachmentStoreOp :: String
conNameAttachmentStoreOp :: String
conNameAttachmentStoreOp = String
"AttachmentStoreOp"
enumPrefixAttachmentStoreOp :: String
enumPrefixAttachmentStoreOp :: String
enumPrefixAttachmentStoreOp = String
"ATTACHMENT_STORE_OP_"
showTableAttachmentStoreOp :: [(AttachmentStoreOp, String)]
showTableAttachmentStoreOp :: [(AttachmentStoreOp, String)]
showTableAttachmentStoreOp =
[ (AttachmentStoreOp
ATTACHMENT_STORE_OP_STORE, String
"STORE")
, (AttachmentStoreOp
ATTACHMENT_STORE_OP_DONT_CARE, String
"DONT_CARE")
, (AttachmentStoreOp
ATTACHMENT_STORE_OP_NONE, String
"NONE")
]
instance Show AttachmentStoreOp where
showsPrec :: Int -> AttachmentStoreOp -> ShowS
showsPrec =
forall a i.
Eq a =>
String
-> [(a, String)]
-> String
-> (a -> i)
-> (i -> ShowS)
-> Int
-> a
-> ShowS
enumShowsPrec
String
enumPrefixAttachmentStoreOp
[(AttachmentStoreOp, String)]
showTableAttachmentStoreOp
String
conNameAttachmentStoreOp
(\(AttachmentStoreOp Int32
x) -> Int32
x)
(forall a. Show a => Int -> a -> ShowS
showsPrec Int
11)
instance Read AttachmentStoreOp where
readPrec :: ReadPrec AttachmentStoreOp
readPrec =
forall i a.
Read i =>
String -> [(a, String)] -> String -> (i -> a) -> ReadPrec a
enumReadPrec
String
enumPrefixAttachmentStoreOp
[(AttachmentStoreOp, String)]
showTableAttachmentStoreOp
String
conNameAttachmentStoreOp
Int32 -> AttachmentStoreOp
AttachmentStoreOp