{-# language CPP #-}
module Vulkan.Core10.Enums.CommandBufferLevel (CommandBufferLevel( COMMAND_BUFFER_LEVEL_PRIMARY
, COMMAND_BUFFER_LEVEL_SECONDARY
, ..
)) 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 CommandBufferLevel = CommandBufferLevel Int32
deriving newtype (CommandBufferLevel -> CommandBufferLevel -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CommandBufferLevel -> CommandBufferLevel -> Bool
$c/= :: CommandBufferLevel -> CommandBufferLevel -> Bool
== :: CommandBufferLevel -> CommandBufferLevel -> Bool
$c== :: CommandBufferLevel -> CommandBufferLevel -> Bool
Eq, Eq CommandBufferLevel
CommandBufferLevel -> CommandBufferLevel -> Bool
CommandBufferLevel -> CommandBufferLevel -> Ordering
CommandBufferLevel -> CommandBufferLevel -> CommandBufferLevel
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 :: CommandBufferLevel -> CommandBufferLevel -> CommandBufferLevel
$cmin :: CommandBufferLevel -> CommandBufferLevel -> CommandBufferLevel
max :: CommandBufferLevel -> CommandBufferLevel -> CommandBufferLevel
$cmax :: CommandBufferLevel -> CommandBufferLevel -> CommandBufferLevel
>= :: CommandBufferLevel -> CommandBufferLevel -> Bool
$c>= :: CommandBufferLevel -> CommandBufferLevel -> Bool
> :: CommandBufferLevel -> CommandBufferLevel -> Bool
$c> :: CommandBufferLevel -> CommandBufferLevel -> Bool
<= :: CommandBufferLevel -> CommandBufferLevel -> Bool
$c<= :: CommandBufferLevel -> CommandBufferLevel -> Bool
< :: CommandBufferLevel -> CommandBufferLevel -> Bool
$c< :: CommandBufferLevel -> CommandBufferLevel -> Bool
compare :: CommandBufferLevel -> CommandBufferLevel -> Ordering
$ccompare :: CommandBufferLevel -> CommandBufferLevel -> Ordering
Ord, Ptr CommandBufferLevel -> IO CommandBufferLevel
Ptr CommandBufferLevel -> Int -> IO CommandBufferLevel
Ptr CommandBufferLevel -> Int -> CommandBufferLevel -> IO ()
Ptr CommandBufferLevel -> CommandBufferLevel -> IO ()
CommandBufferLevel -> Int
forall b. Ptr b -> Int -> IO CommandBufferLevel
forall b. Ptr b -> Int -> CommandBufferLevel -> 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 CommandBufferLevel -> CommandBufferLevel -> IO ()
$cpoke :: Ptr CommandBufferLevel -> CommandBufferLevel -> IO ()
peek :: Ptr CommandBufferLevel -> IO CommandBufferLevel
$cpeek :: Ptr CommandBufferLevel -> IO CommandBufferLevel
pokeByteOff :: forall b. Ptr b -> Int -> CommandBufferLevel -> IO ()
$cpokeByteOff :: forall b. Ptr b -> Int -> CommandBufferLevel -> IO ()
peekByteOff :: forall b. Ptr b -> Int -> IO CommandBufferLevel
$cpeekByteOff :: forall b. Ptr b -> Int -> IO CommandBufferLevel
pokeElemOff :: Ptr CommandBufferLevel -> Int -> CommandBufferLevel -> IO ()
$cpokeElemOff :: Ptr CommandBufferLevel -> Int -> CommandBufferLevel -> IO ()
peekElemOff :: Ptr CommandBufferLevel -> Int -> IO CommandBufferLevel
$cpeekElemOff :: Ptr CommandBufferLevel -> Int -> IO CommandBufferLevel
alignment :: CommandBufferLevel -> Int
$calignment :: CommandBufferLevel -> Int
sizeOf :: CommandBufferLevel -> Int
$csizeOf :: CommandBufferLevel -> Int
Storable, CommandBufferLevel
forall a. a -> Zero a
zero :: CommandBufferLevel
$czero :: CommandBufferLevel
Zero)
pattern $bCOMMAND_BUFFER_LEVEL_PRIMARY :: CommandBufferLevel
$mCOMMAND_BUFFER_LEVEL_PRIMARY :: forall {r}. CommandBufferLevel -> ((# #) -> r) -> ((# #) -> r) -> r
COMMAND_BUFFER_LEVEL_PRIMARY = CommandBufferLevel 0
pattern $bCOMMAND_BUFFER_LEVEL_SECONDARY :: CommandBufferLevel
$mCOMMAND_BUFFER_LEVEL_SECONDARY :: forall {r}. CommandBufferLevel -> ((# #) -> r) -> ((# #) -> r) -> r
COMMAND_BUFFER_LEVEL_SECONDARY = CommandBufferLevel 1
{-# COMPLETE
COMMAND_BUFFER_LEVEL_PRIMARY
, COMMAND_BUFFER_LEVEL_SECONDARY ::
CommandBufferLevel
#-}
conNameCommandBufferLevel :: String
conNameCommandBufferLevel :: String
conNameCommandBufferLevel = String
"CommandBufferLevel"
enumPrefixCommandBufferLevel :: String
enumPrefixCommandBufferLevel :: String
enumPrefixCommandBufferLevel = String
"COMMAND_BUFFER_LEVEL_"
showTableCommandBufferLevel :: [(CommandBufferLevel, String)]
showTableCommandBufferLevel :: [(CommandBufferLevel, String)]
showTableCommandBufferLevel =
[ (CommandBufferLevel
COMMAND_BUFFER_LEVEL_PRIMARY, String
"PRIMARY")
, (CommandBufferLevel
COMMAND_BUFFER_LEVEL_SECONDARY, String
"SECONDARY")
]
instance Show CommandBufferLevel where
showsPrec :: Int -> CommandBufferLevel -> ShowS
showsPrec =
forall a i.
Eq a =>
String
-> [(a, String)]
-> String
-> (a -> i)
-> (i -> ShowS)
-> Int
-> a
-> ShowS
enumShowsPrec
String
enumPrefixCommandBufferLevel
[(CommandBufferLevel, String)]
showTableCommandBufferLevel
String
conNameCommandBufferLevel
(\(CommandBufferLevel Int32
x) -> Int32
x)
(forall a. Show a => Int -> a -> ShowS
showsPrec Int
11)
instance Read CommandBufferLevel where
readPrec :: ReadPrec CommandBufferLevel
readPrec =
forall i a.
Read i =>
String -> [(a, String)] -> String -> (i -> a) -> ReadPrec a
enumReadPrec
String
enumPrefixCommandBufferLevel
[(CommandBufferLevel, String)]
showTableCommandBufferLevel
String
conNameCommandBufferLevel
Int32 -> CommandBufferLevel
CommandBufferLevel