{-# language CPP #-}
module Vulkan.Core10.Enums.SystemAllocationScope (SystemAllocationScope( SYSTEM_ALLOCATION_SCOPE_COMMAND
, SYSTEM_ALLOCATION_SCOPE_OBJECT
, SYSTEM_ALLOCATION_SCOPE_CACHE
, SYSTEM_ALLOCATION_SCOPE_DEVICE
, SYSTEM_ALLOCATION_SCOPE_INSTANCE
, ..
)) 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 SystemAllocationScope = SystemAllocationScope Int32
deriving newtype (SystemAllocationScope -> SystemAllocationScope -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SystemAllocationScope -> SystemAllocationScope -> Bool
$c/= :: SystemAllocationScope -> SystemAllocationScope -> Bool
== :: SystemAllocationScope -> SystemAllocationScope -> Bool
$c== :: SystemAllocationScope -> SystemAllocationScope -> Bool
Eq, Eq SystemAllocationScope
SystemAllocationScope -> SystemAllocationScope -> Bool
SystemAllocationScope -> SystemAllocationScope -> Ordering
SystemAllocationScope
-> SystemAllocationScope -> SystemAllocationScope
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 :: SystemAllocationScope
-> SystemAllocationScope -> SystemAllocationScope
$cmin :: SystemAllocationScope
-> SystemAllocationScope -> SystemAllocationScope
max :: SystemAllocationScope
-> SystemAllocationScope -> SystemAllocationScope
$cmax :: SystemAllocationScope
-> SystemAllocationScope -> SystemAllocationScope
>= :: SystemAllocationScope -> SystemAllocationScope -> Bool
$c>= :: SystemAllocationScope -> SystemAllocationScope -> Bool
> :: SystemAllocationScope -> SystemAllocationScope -> Bool
$c> :: SystemAllocationScope -> SystemAllocationScope -> Bool
<= :: SystemAllocationScope -> SystemAllocationScope -> Bool
$c<= :: SystemAllocationScope -> SystemAllocationScope -> Bool
< :: SystemAllocationScope -> SystemAllocationScope -> Bool
$c< :: SystemAllocationScope -> SystemAllocationScope -> Bool
compare :: SystemAllocationScope -> SystemAllocationScope -> Ordering
$ccompare :: SystemAllocationScope -> SystemAllocationScope -> Ordering
Ord, Ptr SystemAllocationScope -> IO SystemAllocationScope
Ptr SystemAllocationScope -> Int -> IO SystemAllocationScope
Ptr SystemAllocationScope -> Int -> SystemAllocationScope -> IO ()
Ptr SystemAllocationScope -> SystemAllocationScope -> IO ()
SystemAllocationScope -> Int
forall b. Ptr b -> Int -> IO SystemAllocationScope
forall b. Ptr b -> Int -> SystemAllocationScope -> 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 SystemAllocationScope -> SystemAllocationScope -> IO ()
$cpoke :: Ptr SystemAllocationScope -> SystemAllocationScope -> IO ()
peek :: Ptr SystemAllocationScope -> IO SystemAllocationScope
$cpeek :: Ptr SystemAllocationScope -> IO SystemAllocationScope
pokeByteOff :: forall b. Ptr b -> Int -> SystemAllocationScope -> IO ()
$cpokeByteOff :: forall b. Ptr b -> Int -> SystemAllocationScope -> IO ()
peekByteOff :: forall b. Ptr b -> Int -> IO SystemAllocationScope
$cpeekByteOff :: forall b. Ptr b -> Int -> IO SystemAllocationScope
pokeElemOff :: Ptr SystemAllocationScope -> Int -> SystemAllocationScope -> IO ()
$cpokeElemOff :: Ptr SystemAllocationScope -> Int -> SystemAllocationScope -> IO ()
peekElemOff :: Ptr SystemAllocationScope -> Int -> IO SystemAllocationScope
$cpeekElemOff :: Ptr SystemAllocationScope -> Int -> IO SystemAllocationScope
alignment :: SystemAllocationScope -> Int
$calignment :: SystemAllocationScope -> Int
sizeOf :: SystemAllocationScope -> Int
$csizeOf :: SystemAllocationScope -> Int
Storable, SystemAllocationScope
forall a. a -> Zero a
zero :: SystemAllocationScope
$czero :: SystemAllocationScope
Zero)
pattern $bSYSTEM_ALLOCATION_SCOPE_COMMAND :: SystemAllocationScope
$mSYSTEM_ALLOCATION_SCOPE_COMMAND :: forall {r}.
SystemAllocationScope -> ((# #) -> r) -> ((# #) -> r) -> r
SYSTEM_ALLOCATION_SCOPE_COMMAND = SystemAllocationScope 0
pattern $bSYSTEM_ALLOCATION_SCOPE_OBJECT :: SystemAllocationScope
$mSYSTEM_ALLOCATION_SCOPE_OBJECT :: forall {r}.
SystemAllocationScope -> ((# #) -> r) -> ((# #) -> r) -> r
SYSTEM_ALLOCATION_SCOPE_OBJECT = SystemAllocationScope 1
pattern $bSYSTEM_ALLOCATION_SCOPE_CACHE :: SystemAllocationScope
$mSYSTEM_ALLOCATION_SCOPE_CACHE :: forall {r}.
SystemAllocationScope -> ((# #) -> r) -> ((# #) -> r) -> r
SYSTEM_ALLOCATION_SCOPE_CACHE = SystemAllocationScope 2
pattern $bSYSTEM_ALLOCATION_SCOPE_DEVICE :: SystemAllocationScope
$mSYSTEM_ALLOCATION_SCOPE_DEVICE :: forall {r}.
SystemAllocationScope -> ((# #) -> r) -> ((# #) -> r) -> r
SYSTEM_ALLOCATION_SCOPE_DEVICE = SystemAllocationScope 3
pattern $bSYSTEM_ALLOCATION_SCOPE_INSTANCE :: SystemAllocationScope
$mSYSTEM_ALLOCATION_SCOPE_INSTANCE :: forall {r}.
SystemAllocationScope -> ((# #) -> r) -> ((# #) -> r) -> r
SYSTEM_ALLOCATION_SCOPE_INSTANCE = SystemAllocationScope 4
{-# COMPLETE
SYSTEM_ALLOCATION_SCOPE_COMMAND
, SYSTEM_ALLOCATION_SCOPE_OBJECT
, SYSTEM_ALLOCATION_SCOPE_CACHE
, SYSTEM_ALLOCATION_SCOPE_DEVICE
, SYSTEM_ALLOCATION_SCOPE_INSTANCE ::
SystemAllocationScope
#-}
conNameSystemAllocationScope :: String
conNameSystemAllocationScope :: String
conNameSystemAllocationScope = String
"SystemAllocationScope"
enumPrefixSystemAllocationScope :: String
enumPrefixSystemAllocationScope :: String
enumPrefixSystemAllocationScope = String
"SYSTEM_ALLOCATION_SCOPE_"
showTableSystemAllocationScope :: [(SystemAllocationScope, String)]
showTableSystemAllocationScope :: [(SystemAllocationScope, String)]
showTableSystemAllocationScope =
[ (SystemAllocationScope
SYSTEM_ALLOCATION_SCOPE_COMMAND, String
"COMMAND")
, (SystemAllocationScope
SYSTEM_ALLOCATION_SCOPE_OBJECT, String
"OBJECT")
, (SystemAllocationScope
SYSTEM_ALLOCATION_SCOPE_CACHE, String
"CACHE")
, (SystemAllocationScope
SYSTEM_ALLOCATION_SCOPE_DEVICE, String
"DEVICE")
,
( SystemAllocationScope
SYSTEM_ALLOCATION_SCOPE_INSTANCE
, String
"INSTANCE"
)
]
instance Show SystemAllocationScope where
showsPrec :: Int -> SystemAllocationScope -> ShowS
showsPrec =
forall a i.
Eq a =>
String
-> [(a, String)]
-> String
-> (a -> i)
-> (i -> ShowS)
-> Int
-> a
-> ShowS
enumShowsPrec
String
enumPrefixSystemAllocationScope
[(SystemAllocationScope, String)]
showTableSystemAllocationScope
String
conNameSystemAllocationScope
(\(SystemAllocationScope Int32
x) -> Int32
x)
(forall a. Show a => Int -> a -> ShowS
showsPrec Int
11)
instance Read SystemAllocationScope where
readPrec :: ReadPrec SystemAllocationScope
readPrec =
forall i a.
Read i =>
String -> [(a, String)] -> String -> (i -> a) -> ReadPrec a
enumReadPrec
String
enumPrefixSystemAllocationScope
[(SystemAllocationScope, String)]
showTableSystemAllocationScope
String
conNameSystemAllocationScope
Int32 -> SystemAllocationScope
SystemAllocationScope