{-# language CPP #-}
module Vulkan.Core12.Enums.DriverId (DriverId( DRIVER_ID_AMD_PROPRIETARY
, DRIVER_ID_AMD_OPEN_SOURCE
, DRIVER_ID_MESA_RADV
, DRIVER_ID_NVIDIA_PROPRIETARY
, DRIVER_ID_INTEL_PROPRIETARY_WINDOWS
, DRIVER_ID_INTEL_OPEN_SOURCE_MESA
, DRIVER_ID_IMAGINATION_PROPRIETARY
, DRIVER_ID_QUALCOMM_PROPRIETARY
, DRIVER_ID_ARM_PROPRIETARY
, DRIVER_ID_GOOGLE_SWIFTSHADER
, DRIVER_ID_GGP_PROPRIETARY
, DRIVER_ID_BROADCOM_PROPRIETARY
, DRIVER_ID_MESA_LLVMPIPE
, DRIVER_ID_MOLTENVK
, DRIVER_ID_COREAVI_PROPRIETARY
, DRIVER_ID_JUICE_PROPRIETARY
, DRIVER_ID_VERISILICON_PROPRIETARY
, DRIVER_ID_MESA_TURNIP
, DRIVER_ID_MESA_V3DV
, DRIVER_ID_MESA_PANVK
, DRIVER_ID_SAMSUNG_PROPRIETARY
, DRIVER_ID_MESA_VENUS
, DRIVER_ID_MESA_DOZEN
, DRIVER_ID_MESA_NVK
, DRIVER_ID_IMAGINATION_OPEN_SOURCE_MESA
, DRIVER_ID_MESA_AGXV
, ..
)) 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 DriverId = DriverId Int32
deriving newtype (DriverId -> DriverId -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DriverId -> DriverId -> Bool
$c/= :: DriverId -> DriverId -> Bool
== :: DriverId -> DriverId -> Bool
$c== :: DriverId -> DriverId -> Bool
Eq, Eq DriverId
DriverId -> DriverId -> Bool
DriverId -> DriverId -> Ordering
DriverId -> DriverId -> DriverId
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 :: DriverId -> DriverId -> DriverId
$cmin :: DriverId -> DriverId -> DriverId
max :: DriverId -> DriverId -> DriverId
$cmax :: DriverId -> DriverId -> DriverId
>= :: DriverId -> DriverId -> Bool
$c>= :: DriverId -> DriverId -> Bool
> :: DriverId -> DriverId -> Bool
$c> :: DriverId -> DriverId -> Bool
<= :: DriverId -> DriverId -> Bool
$c<= :: DriverId -> DriverId -> Bool
< :: DriverId -> DriverId -> Bool
$c< :: DriverId -> DriverId -> Bool
compare :: DriverId -> DriverId -> Ordering
$ccompare :: DriverId -> DriverId -> Ordering
Ord, Ptr DriverId -> IO DriverId
Ptr DriverId -> Int -> IO DriverId
Ptr DriverId -> Int -> DriverId -> IO ()
Ptr DriverId -> DriverId -> IO ()
DriverId -> Int
forall b. Ptr b -> Int -> IO DriverId
forall b. Ptr b -> Int -> DriverId -> 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 DriverId -> DriverId -> IO ()
$cpoke :: Ptr DriverId -> DriverId -> IO ()
peek :: Ptr DriverId -> IO DriverId
$cpeek :: Ptr DriverId -> IO DriverId
pokeByteOff :: forall b. Ptr b -> Int -> DriverId -> IO ()
$cpokeByteOff :: forall b. Ptr b -> Int -> DriverId -> IO ()
peekByteOff :: forall b. Ptr b -> Int -> IO DriverId
$cpeekByteOff :: forall b. Ptr b -> Int -> IO DriverId
pokeElemOff :: Ptr DriverId -> Int -> DriverId -> IO ()
$cpokeElemOff :: Ptr DriverId -> Int -> DriverId -> IO ()
peekElemOff :: Ptr DriverId -> Int -> IO DriverId
$cpeekElemOff :: Ptr DriverId -> Int -> IO DriverId
alignment :: DriverId -> Int
$calignment :: DriverId -> Int
sizeOf :: DriverId -> Int
$csizeOf :: DriverId -> Int
Storable, DriverId
forall a. a -> Zero a
zero :: DriverId
$czero :: DriverId
Zero)
pattern $bDRIVER_ID_AMD_PROPRIETARY :: DriverId
$mDRIVER_ID_AMD_PROPRIETARY :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_AMD_PROPRIETARY = DriverId 1
pattern $bDRIVER_ID_AMD_OPEN_SOURCE :: DriverId
$mDRIVER_ID_AMD_OPEN_SOURCE :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_AMD_OPEN_SOURCE = DriverId 2
pattern $bDRIVER_ID_MESA_RADV :: DriverId
$mDRIVER_ID_MESA_RADV :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_MESA_RADV = DriverId 3
pattern $bDRIVER_ID_NVIDIA_PROPRIETARY :: DriverId
$mDRIVER_ID_NVIDIA_PROPRIETARY :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_NVIDIA_PROPRIETARY = DriverId 4
pattern $bDRIVER_ID_INTEL_PROPRIETARY_WINDOWS :: DriverId
$mDRIVER_ID_INTEL_PROPRIETARY_WINDOWS :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_INTEL_PROPRIETARY_WINDOWS = DriverId 5
pattern $bDRIVER_ID_INTEL_OPEN_SOURCE_MESA :: DriverId
$mDRIVER_ID_INTEL_OPEN_SOURCE_MESA :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_INTEL_OPEN_SOURCE_MESA = DriverId 6
pattern $bDRIVER_ID_IMAGINATION_PROPRIETARY :: DriverId
$mDRIVER_ID_IMAGINATION_PROPRIETARY :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_IMAGINATION_PROPRIETARY = DriverId 7
pattern $bDRIVER_ID_QUALCOMM_PROPRIETARY :: DriverId
$mDRIVER_ID_QUALCOMM_PROPRIETARY :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_QUALCOMM_PROPRIETARY = DriverId 8
pattern $bDRIVER_ID_ARM_PROPRIETARY :: DriverId
$mDRIVER_ID_ARM_PROPRIETARY :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_ARM_PROPRIETARY = DriverId 9
pattern $bDRIVER_ID_GOOGLE_SWIFTSHADER :: DriverId
$mDRIVER_ID_GOOGLE_SWIFTSHADER :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_GOOGLE_SWIFTSHADER = DriverId 10
pattern $bDRIVER_ID_GGP_PROPRIETARY :: DriverId
$mDRIVER_ID_GGP_PROPRIETARY :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_GGP_PROPRIETARY = DriverId 11
pattern $bDRIVER_ID_BROADCOM_PROPRIETARY :: DriverId
$mDRIVER_ID_BROADCOM_PROPRIETARY :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_BROADCOM_PROPRIETARY = DriverId 12
pattern $bDRIVER_ID_MESA_LLVMPIPE :: DriverId
$mDRIVER_ID_MESA_LLVMPIPE :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_MESA_LLVMPIPE = DriverId 13
pattern $bDRIVER_ID_MOLTENVK :: DriverId
$mDRIVER_ID_MOLTENVK :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_MOLTENVK = DriverId 14
pattern $bDRIVER_ID_COREAVI_PROPRIETARY :: DriverId
$mDRIVER_ID_COREAVI_PROPRIETARY :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_COREAVI_PROPRIETARY = DriverId 15
pattern $bDRIVER_ID_JUICE_PROPRIETARY :: DriverId
$mDRIVER_ID_JUICE_PROPRIETARY :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_JUICE_PROPRIETARY = DriverId 16
pattern $bDRIVER_ID_VERISILICON_PROPRIETARY :: DriverId
$mDRIVER_ID_VERISILICON_PROPRIETARY :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_VERISILICON_PROPRIETARY = DriverId 17
pattern $bDRIVER_ID_MESA_TURNIP :: DriverId
$mDRIVER_ID_MESA_TURNIP :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_MESA_TURNIP = DriverId 18
pattern $bDRIVER_ID_MESA_V3DV :: DriverId
$mDRIVER_ID_MESA_V3DV :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_MESA_V3DV = DriverId 19
pattern $bDRIVER_ID_MESA_PANVK :: DriverId
$mDRIVER_ID_MESA_PANVK :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_MESA_PANVK = DriverId 20
pattern $bDRIVER_ID_SAMSUNG_PROPRIETARY :: DriverId
$mDRIVER_ID_SAMSUNG_PROPRIETARY :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_SAMSUNG_PROPRIETARY = DriverId 21
pattern $bDRIVER_ID_MESA_VENUS :: DriverId
$mDRIVER_ID_MESA_VENUS :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_MESA_VENUS = DriverId 22
pattern $bDRIVER_ID_MESA_DOZEN :: DriverId
$mDRIVER_ID_MESA_DOZEN :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_MESA_DOZEN = DriverId 23
pattern $bDRIVER_ID_MESA_NVK :: DriverId
$mDRIVER_ID_MESA_NVK :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_MESA_NVK = DriverId 24
pattern $bDRIVER_ID_IMAGINATION_OPEN_SOURCE_MESA :: DriverId
$mDRIVER_ID_IMAGINATION_OPEN_SOURCE_MESA :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_IMAGINATION_OPEN_SOURCE_MESA = DriverId 25
pattern $bDRIVER_ID_MESA_AGXV :: DriverId
$mDRIVER_ID_MESA_AGXV :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_MESA_AGXV = DriverId 26
{-# COMPLETE
DRIVER_ID_AMD_PROPRIETARY
, DRIVER_ID_AMD_OPEN_SOURCE
, DRIVER_ID_MESA_RADV
, DRIVER_ID_NVIDIA_PROPRIETARY
, DRIVER_ID_INTEL_PROPRIETARY_WINDOWS
, DRIVER_ID_INTEL_OPEN_SOURCE_MESA
, DRIVER_ID_IMAGINATION_PROPRIETARY
, DRIVER_ID_QUALCOMM_PROPRIETARY
, DRIVER_ID_ARM_PROPRIETARY
, DRIVER_ID_GOOGLE_SWIFTSHADER
, DRIVER_ID_GGP_PROPRIETARY
, DRIVER_ID_BROADCOM_PROPRIETARY
, DRIVER_ID_MESA_LLVMPIPE
, DRIVER_ID_MOLTENVK
, DRIVER_ID_COREAVI_PROPRIETARY
, DRIVER_ID_JUICE_PROPRIETARY
, DRIVER_ID_VERISILICON_PROPRIETARY
, DRIVER_ID_MESA_TURNIP
, DRIVER_ID_MESA_V3DV
, DRIVER_ID_MESA_PANVK
, DRIVER_ID_SAMSUNG_PROPRIETARY
, DRIVER_ID_MESA_VENUS
, DRIVER_ID_MESA_DOZEN
, DRIVER_ID_MESA_NVK
, DRIVER_ID_IMAGINATION_OPEN_SOURCE_MESA
, DRIVER_ID_MESA_AGXV ::
DriverId
#-}
conNameDriverId :: String
conNameDriverId :: String
conNameDriverId = String
"DriverId"
enumPrefixDriverId :: String
enumPrefixDriverId :: String
enumPrefixDriverId = String
"DRIVER_ID_"
showTableDriverId :: [(DriverId, String)]
showTableDriverId :: [(DriverId, String)]
showTableDriverId =
[ (DriverId
DRIVER_ID_AMD_PROPRIETARY, String
"AMD_PROPRIETARY")
, (DriverId
DRIVER_ID_AMD_OPEN_SOURCE, String
"AMD_OPEN_SOURCE")
, (DriverId
DRIVER_ID_MESA_RADV, String
"MESA_RADV")
, (DriverId
DRIVER_ID_NVIDIA_PROPRIETARY, String
"NVIDIA_PROPRIETARY")
,
( DriverId
DRIVER_ID_INTEL_PROPRIETARY_WINDOWS
, String
"INTEL_PROPRIETARY_WINDOWS"
)
,
( DriverId
DRIVER_ID_INTEL_OPEN_SOURCE_MESA
, String
"INTEL_OPEN_SOURCE_MESA"
)
,
( DriverId
DRIVER_ID_IMAGINATION_PROPRIETARY
, String
"IMAGINATION_PROPRIETARY"
)
, (DriverId
DRIVER_ID_QUALCOMM_PROPRIETARY, String
"QUALCOMM_PROPRIETARY")
, (DriverId
DRIVER_ID_ARM_PROPRIETARY, String
"ARM_PROPRIETARY")
, (DriverId
DRIVER_ID_GOOGLE_SWIFTSHADER, String
"GOOGLE_SWIFTSHADER")
, (DriverId
DRIVER_ID_GGP_PROPRIETARY, String
"GGP_PROPRIETARY")
, (DriverId
DRIVER_ID_BROADCOM_PROPRIETARY, String
"BROADCOM_PROPRIETARY")
, (DriverId
DRIVER_ID_MESA_LLVMPIPE, String
"MESA_LLVMPIPE")
, (DriverId
DRIVER_ID_MOLTENVK, String
"MOLTENVK")
, (DriverId
DRIVER_ID_COREAVI_PROPRIETARY, String
"COREAVI_PROPRIETARY")
, (DriverId
DRIVER_ID_JUICE_PROPRIETARY, String
"JUICE_PROPRIETARY")
,
( DriverId
DRIVER_ID_VERISILICON_PROPRIETARY
, String
"VERISILICON_PROPRIETARY"
)
, (DriverId
DRIVER_ID_MESA_TURNIP, String
"MESA_TURNIP")
, (DriverId
DRIVER_ID_MESA_V3DV, String
"MESA_V3DV")
, (DriverId
DRIVER_ID_MESA_PANVK, String
"MESA_PANVK")
, (DriverId
DRIVER_ID_SAMSUNG_PROPRIETARY, String
"SAMSUNG_PROPRIETARY")
, (DriverId
DRIVER_ID_MESA_VENUS, String
"MESA_VENUS")
, (DriverId
DRIVER_ID_MESA_DOZEN, String
"MESA_DOZEN")
, (DriverId
DRIVER_ID_MESA_NVK, String
"MESA_NVK")
,
( DriverId
DRIVER_ID_IMAGINATION_OPEN_SOURCE_MESA
, String
"IMAGINATION_OPEN_SOURCE_MESA"
)
, (DriverId
DRIVER_ID_MESA_AGXV, String
"MESA_AGXV")
]
instance Show DriverId where
showsPrec :: Int -> DriverId -> ShowS
showsPrec =
forall a i.
Eq a =>
String
-> [(a, String)]
-> String
-> (a -> i)
-> (i -> ShowS)
-> Int
-> a
-> ShowS
enumShowsPrec
String
enumPrefixDriverId
[(DriverId, String)]
showTableDriverId
String
conNameDriverId
(\(DriverId Int32
x) -> Int32
x)
(forall a. Show a => Int -> a -> ShowS
showsPrec Int
11)
instance Read DriverId where
readPrec :: ReadPrec DriverId
readPrec =
forall i a.
Read i =>
String -> [(a, String)] -> String -> (i -> a) -> ReadPrec a
enumReadPrec
String
enumPrefixDriverId
[(DriverId, String)]
showTableDriverId
String
conNameDriverId
Int32 -> DriverId
DriverId