{-# language CPP #-}
module Vulkan.Core10.Enums.AttachmentStoreOp (AttachmentStoreOp( ATTACHMENT_STORE_OP_STORE
, ATTACHMENT_STORE_OP_DONT_CARE
, ATTACHMENT_STORE_OP_NONE_QCOM
, ..
)) where
import GHC.Read (choose)
import GHC.Read (expectP)
import GHC.Read (parens)
import GHC.Show (showParen)
import GHC.Show (showString)
import GHC.Show (showsPrec)
import Text.ParserCombinators.ReadPrec ((+++))
import Text.ParserCombinators.ReadPrec (prec)
import Text.ParserCombinators.ReadPrec (step)
import Foreign.Storable (Storable)
import Data.Int (Int32)
import GHC.Read (Read(readPrec))
import Text.Read.Lex (Lexeme(Ident))
import Vulkan.Zero (Zero)
newtype AttachmentStoreOp = AttachmentStoreOp Int32
deriving newtype (AttachmentStoreOp -> AttachmentStoreOp -> Bool
(AttachmentStoreOp -> AttachmentStoreOp -> Bool)
-> (AttachmentStoreOp -> AttachmentStoreOp -> Bool)
-> Eq AttachmentStoreOp
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
Eq AttachmentStoreOp =>
(AttachmentStoreOp -> AttachmentStoreOp -> Ordering)
-> (AttachmentStoreOp -> AttachmentStoreOp -> Bool)
-> (AttachmentStoreOp -> AttachmentStoreOp -> Bool)
-> (AttachmentStoreOp -> AttachmentStoreOp -> Bool)
-> (AttachmentStoreOp -> AttachmentStoreOp -> Bool)
-> (AttachmentStoreOp -> AttachmentStoreOp -> AttachmentStoreOp)
-> (AttachmentStoreOp -> AttachmentStoreOp -> AttachmentStoreOp)
-> Ord 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
$cp1Ord :: Eq AttachmentStoreOp
Ord, Ptr b -> Int -> IO AttachmentStoreOp
Ptr b -> Int -> AttachmentStoreOp -> IO ()
Ptr AttachmentStoreOp -> IO AttachmentStoreOp
Ptr AttachmentStoreOp -> Int -> IO AttachmentStoreOp
Ptr AttachmentStoreOp -> Int -> AttachmentStoreOp -> IO ()
Ptr AttachmentStoreOp -> AttachmentStoreOp -> IO ()
AttachmentStoreOp -> Int
(AttachmentStoreOp -> Int)
-> (AttachmentStoreOp -> Int)
-> (Ptr AttachmentStoreOp -> Int -> IO AttachmentStoreOp)
-> (Ptr AttachmentStoreOp -> Int -> AttachmentStoreOp -> IO ())
-> (forall b. Ptr b -> Int -> IO AttachmentStoreOp)
-> (forall b. Ptr b -> Int -> AttachmentStoreOp -> IO ())
-> (Ptr AttachmentStoreOp -> IO AttachmentStoreOp)
-> (Ptr AttachmentStoreOp -> AttachmentStoreOp -> IO ())
-> Storable AttachmentStoreOp
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 :: Ptr b -> Int -> AttachmentStoreOp -> IO ()
$cpokeByteOff :: forall b. Ptr b -> Int -> AttachmentStoreOp -> IO ()
peekByteOff :: 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
AttachmentStoreOp -> Zero AttachmentStoreOp
forall a. a -> Zero a
zero :: AttachmentStoreOp
$czero :: AttachmentStoreOp
Zero)
pattern $bATTACHMENT_STORE_OP_STORE :: AttachmentStoreOp
$mATTACHMENT_STORE_OP_STORE :: forall r. AttachmentStoreOp -> (Void# -> r) -> (Void# -> r) -> r
ATTACHMENT_STORE_OP_STORE = AttachmentStoreOp 0
pattern $bATTACHMENT_STORE_OP_DONT_CARE :: AttachmentStoreOp
$mATTACHMENT_STORE_OP_DONT_CARE :: forall r. AttachmentStoreOp -> (Void# -> r) -> (Void# -> r) -> r
ATTACHMENT_STORE_OP_DONT_CARE = AttachmentStoreOp 1
pattern $bATTACHMENT_STORE_OP_NONE_QCOM :: AttachmentStoreOp
$mATTACHMENT_STORE_OP_NONE_QCOM :: forall r. AttachmentStoreOp -> (Void# -> r) -> (Void# -> r) -> r
ATTACHMENT_STORE_OP_NONE_QCOM = AttachmentStoreOp 1000301000
{-# complete ATTACHMENT_STORE_OP_STORE,
ATTACHMENT_STORE_OP_DONT_CARE,
ATTACHMENT_STORE_OP_NONE_QCOM :: AttachmentStoreOp #-}
instance Show AttachmentStoreOp where
showsPrec :: Int -> AttachmentStoreOp -> ShowS
showsPrec p :: Int
p = \case
ATTACHMENT_STORE_OP_STORE -> String -> ShowS
showString "ATTACHMENT_STORE_OP_STORE"
ATTACHMENT_STORE_OP_DONT_CARE -> String -> ShowS
showString "ATTACHMENT_STORE_OP_DONT_CARE"
ATTACHMENT_STORE_OP_NONE_QCOM -> String -> ShowS
showString "ATTACHMENT_STORE_OP_NONE_QCOM"
AttachmentStoreOp x :: Int32
x -> Bool -> ShowS -> ShowS
showParen (Int
p Int -> Int -> Bool
forall a. Ord a => a -> a -> Bool
>= 11) (String -> ShowS
showString "AttachmentStoreOp " ShowS -> ShowS -> ShowS
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Int -> Int32 -> ShowS
forall a. Show a => Int -> a -> ShowS
showsPrec 11 Int32
x)
instance Read AttachmentStoreOp where
readPrec :: ReadPrec AttachmentStoreOp
readPrec = ReadPrec AttachmentStoreOp -> ReadPrec AttachmentStoreOp
forall a. ReadPrec a -> ReadPrec a
parens ([(String, ReadPrec AttachmentStoreOp)]
-> ReadPrec AttachmentStoreOp
forall a. [(String, ReadPrec a)] -> ReadPrec a
choose [("ATTACHMENT_STORE_OP_STORE", AttachmentStoreOp -> ReadPrec AttachmentStoreOp
forall (f :: * -> *) a. Applicative f => a -> f a
pure AttachmentStoreOp
ATTACHMENT_STORE_OP_STORE)
, ("ATTACHMENT_STORE_OP_DONT_CARE", AttachmentStoreOp -> ReadPrec AttachmentStoreOp
forall (f :: * -> *) a. Applicative f => a -> f a
pure AttachmentStoreOp
ATTACHMENT_STORE_OP_DONT_CARE)
, ("ATTACHMENT_STORE_OP_NONE_QCOM", AttachmentStoreOp -> ReadPrec AttachmentStoreOp
forall (f :: * -> *) a. Applicative f => a -> f a
pure AttachmentStoreOp
ATTACHMENT_STORE_OP_NONE_QCOM)]
ReadPrec AttachmentStoreOp
-> ReadPrec AttachmentStoreOp -> ReadPrec AttachmentStoreOp
forall a. ReadPrec a -> ReadPrec a -> ReadPrec a
+++
Int -> ReadPrec AttachmentStoreOp -> ReadPrec AttachmentStoreOp
forall a. Int -> ReadPrec a -> ReadPrec a
prec 10 (do
Lexeme -> ReadPrec ()
expectP (String -> Lexeme
Ident "AttachmentStoreOp")
Int32
v <- ReadPrec Int32 -> ReadPrec Int32
forall a. ReadPrec a -> ReadPrec a
step ReadPrec Int32
forall a. Read a => ReadPrec a
readPrec
AttachmentStoreOp -> ReadPrec AttachmentStoreOp
forall (f :: * -> *) a. Applicative f => a -> f a
pure (Int32 -> AttachmentStoreOp
AttachmentStoreOp Int32
v)))