{-# language CPP #-}
module Vulkan.Core10.Enums.SubpassContents (SubpassContents( SUBPASS_CONTENTS_INLINE
, SUBPASS_CONTENTS_SECONDARY_COMMAND_BUFFERS
, SUBPASS_CONTENTS_INLINE_AND_SECONDARY_COMMAND_BUFFERS_EXT
, ..
)) 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 SubpassContents = SubpassContents Int32
deriving newtype (SubpassContents -> SubpassContents -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SubpassContents -> SubpassContents -> Bool
$c/= :: SubpassContents -> SubpassContents -> Bool
== :: SubpassContents -> SubpassContents -> Bool
$c== :: SubpassContents -> SubpassContents -> Bool
Eq, Eq SubpassContents
SubpassContents -> SubpassContents -> Bool
SubpassContents -> SubpassContents -> Ordering
SubpassContents -> SubpassContents -> SubpassContents
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 :: SubpassContents -> SubpassContents -> SubpassContents
$cmin :: SubpassContents -> SubpassContents -> SubpassContents
max :: SubpassContents -> SubpassContents -> SubpassContents
$cmax :: SubpassContents -> SubpassContents -> SubpassContents
>= :: SubpassContents -> SubpassContents -> Bool
$c>= :: SubpassContents -> SubpassContents -> Bool
> :: SubpassContents -> SubpassContents -> Bool
$c> :: SubpassContents -> SubpassContents -> Bool
<= :: SubpassContents -> SubpassContents -> Bool
$c<= :: SubpassContents -> SubpassContents -> Bool
< :: SubpassContents -> SubpassContents -> Bool
$c< :: SubpassContents -> SubpassContents -> Bool
compare :: SubpassContents -> SubpassContents -> Ordering
$ccompare :: SubpassContents -> SubpassContents -> Ordering
Ord, Ptr SubpassContents -> IO SubpassContents
Ptr SubpassContents -> Int -> IO SubpassContents
Ptr SubpassContents -> Int -> SubpassContents -> IO ()
Ptr SubpassContents -> SubpassContents -> IO ()
SubpassContents -> Int
forall b. Ptr b -> Int -> IO SubpassContents
forall b. Ptr b -> Int -> SubpassContents -> 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 SubpassContents -> SubpassContents -> IO ()
$cpoke :: Ptr SubpassContents -> SubpassContents -> IO ()
peek :: Ptr SubpassContents -> IO SubpassContents
$cpeek :: Ptr SubpassContents -> IO SubpassContents
pokeByteOff :: forall b. Ptr b -> Int -> SubpassContents -> IO ()
$cpokeByteOff :: forall b. Ptr b -> Int -> SubpassContents -> IO ()
peekByteOff :: forall b. Ptr b -> Int -> IO SubpassContents
$cpeekByteOff :: forall b. Ptr b -> Int -> IO SubpassContents
pokeElemOff :: Ptr SubpassContents -> Int -> SubpassContents -> IO ()
$cpokeElemOff :: Ptr SubpassContents -> Int -> SubpassContents -> IO ()
peekElemOff :: Ptr SubpassContents -> Int -> IO SubpassContents
$cpeekElemOff :: Ptr SubpassContents -> Int -> IO SubpassContents
alignment :: SubpassContents -> Int
$calignment :: SubpassContents -> Int
sizeOf :: SubpassContents -> Int
$csizeOf :: SubpassContents -> Int
Storable, SubpassContents
forall a. a -> Zero a
zero :: SubpassContents
$czero :: SubpassContents
Zero)
pattern $bSUBPASS_CONTENTS_INLINE :: SubpassContents
$mSUBPASS_CONTENTS_INLINE :: forall {r}. SubpassContents -> ((# #) -> r) -> ((# #) -> r) -> r
SUBPASS_CONTENTS_INLINE = SubpassContents 0
pattern $bSUBPASS_CONTENTS_SECONDARY_COMMAND_BUFFERS :: SubpassContents
$mSUBPASS_CONTENTS_SECONDARY_COMMAND_BUFFERS :: forall {r}. SubpassContents -> ((# #) -> r) -> ((# #) -> r) -> r
SUBPASS_CONTENTS_SECONDARY_COMMAND_BUFFERS = SubpassContents 1
pattern $bSUBPASS_CONTENTS_INLINE_AND_SECONDARY_COMMAND_BUFFERS_EXT :: SubpassContents
$mSUBPASS_CONTENTS_INLINE_AND_SECONDARY_COMMAND_BUFFERS_EXT :: forall {r}. SubpassContents -> ((# #) -> r) -> ((# #) -> r) -> r
SUBPASS_CONTENTS_INLINE_AND_SECONDARY_COMMAND_BUFFERS_EXT = SubpassContents 1000451000
{-# COMPLETE
SUBPASS_CONTENTS_INLINE
, SUBPASS_CONTENTS_SECONDARY_COMMAND_BUFFERS
, SUBPASS_CONTENTS_INLINE_AND_SECONDARY_COMMAND_BUFFERS_EXT ::
SubpassContents
#-}
conNameSubpassContents :: String
conNameSubpassContents :: String
conNameSubpassContents = String
"SubpassContents"
enumPrefixSubpassContents :: String
enumPrefixSubpassContents :: String
enumPrefixSubpassContents = String
"SUBPASS_CONTENTS_"
showTableSubpassContents :: [(SubpassContents, String)]
showTableSubpassContents :: [(SubpassContents, String)]
showTableSubpassContents =
[ (SubpassContents
SUBPASS_CONTENTS_INLINE, String
"INLINE")
,
( SubpassContents
SUBPASS_CONTENTS_SECONDARY_COMMAND_BUFFERS
, String
"SECONDARY_COMMAND_BUFFERS"
)
,
( SubpassContents
SUBPASS_CONTENTS_INLINE_AND_SECONDARY_COMMAND_BUFFERS_EXT
, String
"INLINE_AND_SECONDARY_COMMAND_BUFFERS_EXT"
)
]
instance Show SubpassContents where
showsPrec :: Int -> SubpassContents -> ShowS
showsPrec =
forall a i.
Eq a =>
String
-> [(a, String)]
-> String
-> (a -> i)
-> (i -> ShowS)
-> Int
-> a
-> ShowS
enumShowsPrec
String
enumPrefixSubpassContents
[(SubpassContents, String)]
showTableSubpassContents
String
conNameSubpassContents
(\(SubpassContents Int32
x) -> Int32
x)
(forall a. Show a => Int -> a -> ShowS
showsPrec Int
11)
instance Read SubpassContents where
readPrec :: ReadPrec SubpassContents
readPrec =
forall i a.
Read i =>
String -> [(a, String)] -> String -> (i -> a) -> ReadPrec a
enumReadPrec
String
enumPrefixSubpassContents
[(SubpassContents, String)]
showTableSubpassContents
String
conNameSubpassContents
Int32 -> SubpassContents
SubpassContents