{-# 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
, ..
)) where
import Vulkan.Internal.Utils (enumReadPrec)
import Vulkan.Internal.Utils (enumShowsPrec)
import GHC.Show (showsPrec)
import Foreign.Storable (Storable)
import Data.Int (Int32)
import GHC.Read (Read(readPrec))
import GHC.Show (Show(showsPrec))
import Vulkan.Zero (Zero)
newtype DriverId = DriverId Int32
deriving newtype (DriverId -> DriverId -> Bool
(DriverId -> DriverId -> Bool)
-> (DriverId -> DriverId -> Bool) -> Eq DriverId
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
Eq DriverId =>
(DriverId -> DriverId -> Ordering)
-> (DriverId -> DriverId -> Bool)
-> (DriverId -> DriverId -> Bool)
-> (DriverId -> DriverId -> Bool)
-> (DriverId -> DriverId -> Bool)
-> (DriverId -> DriverId -> DriverId)
-> (DriverId -> DriverId -> DriverId)
-> Ord 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
$cp1Ord :: Eq DriverId
Ord, Ptr b -> Int -> IO DriverId
Ptr b -> Int -> DriverId -> IO ()
Ptr DriverId -> IO DriverId
Ptr DriverId -> Int -> IO DriverId
Ptr DriverId -> Int -> DriverId -> IO ()
Ptr DriverId -> DriverId -> IO ()
DriverId -> Int
(DriverId -> Int)
-> (DriverId -> Int)
-> (Ptr DriverId -> Int -> IO DriverId)
-> (Ptr DriverId -> Int -> DriverId -> IO ())
-> (forall b. Ptr b -> Int -> IO DriverId)
-> (forall b. Ptr b -> Int -> DriverId -> IO ())
-> (Ptr DriverId -> IO DriverId)
-> (Ptr DriverId -> DriverId -> IO ())
-> Storable DriverId
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 :: Ptr b -> Int -> DriverId -> IO ()
$cpokeByteOff :: forall b. Ptr b -> Int -> DriverId -> IO ()
peekByteOff :: 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
DriverId -> Zero DriverId
forall a. a -> Zero a
zero :: DriverId
$czero :: DriverId
Zero)
pattern $bDRIVER_ID_AMD_PROPRIETARY :: DriverId
$mDRIVER_ID_AMD_PROPRIETARY :: forall r. DriverId -> (Void# -> r) -> (Void# -> r) -> r
DRIVER_ID_AMD_PROPRIETARY = DriverId 1
pattern $bDRIVER_ID_AMD_OPEN_SOURCE :: DriverId
$mDRIVER_ID_AMD_OPEN_SOURCE :: forall r. DriverId -> (Void# -> r) -> (Void# -> r) -> r
DRIVER_ID_AMD_OPEN_SOURCE = DriverId 2
pattern $bDRIVER_ID_MESA_RADV :: DriverId
$mDRIVER_ID_MESA_RADV :: forall r. DriverId -> (Void# -> r) -> (Void# -> r) -> r
DRIVER_ID_MESA_RADV = DriverId 3
pattern $bDRIVER_ID_NVIDIA_PROPRIETARY :: DriverId
$mDRIVER_ID_NVIDIA_PROPRIETARY :: forall r. DriverId -> (Void# -> r) -> (Void# -> r) -> r
DRIVER_ID_NVIDIA_PROPRIETARY = DriverId 4
pattern $bDRIVER_ID_INTEL_PROPRIETARY_WINDOWS :: DriverId
$mDRIVER_ID_INTEL_PROPRIETARY_WINDOWS :: forall r. DriverId -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> r) -> r
DRIVER_ID_INTEL_OPEN_SOURCE_MESA = DriverId 6
pattern $bDRIVER_ID_IMAGINATION_PROPRIETARY :: DriverId
$mDRIVER_ID_IMAGINATION_PROPRIETARY :: forall r. DriverId -> (Void# -> r) -> (Void# -> r) -> r
DRIVER_ID_IMAGINATION_PROPRIETARY = DriverId 7
pattern $bDRIVER_ID_QUALCOMM_PROPRIETARY :: DriverId
$mDRIVER_ID_QUALCOMM_PROPRIETARY :: forall r. DriverId -> (Void# -> r) -> (Void# -> r) -> r
DRIVER_ID_QUALCOMM_PROPRIETARY = DriverId 8
pattern $bDRIVER_ID_ARM_PROPRIETARY :: DriverId
$mDRIVER_ID_ARM_PROPRIETARY :: forall r. DriverId -> (Void# -> r) -> (Void# -> r) -> r
DRIVER_ID_ARM_PROPRIETARY = DriverId 9
pattern $bDRIVER_ID_GOOGLE_SWIFTSHADER :: DriverId
$mDRIVER_ID_GOOGLE_SWIFTSHADER :: forall r. DriverId -> (Void# -> r) -> (Void# -> r) -> r
DRIVER_ID_GOOGLE_SWIFTSHADER = DriverId 10
pattern $bDRIVER_ID_GGP_PROPRIETARY :: DriverId
$mDRIVER_ID_GGP_PROPRIETARY :: forall r. DriverId -> (Void# -> r) -> (Void# -> r) -> r
DRIVER_ID_GGP_PROPRIETARY = DriverId 11
pattern $bDRIVER_ID_BROADCOM_PROPRIETARY :: DriverId
$mDRIVER_ID_BROADCOM_PROPRIETARY :: forall r. DriverId -> (Void# -> r) -> (Void# -> r) -> r
DRIVER_ID_BROADCOM_PROPRIETARY = DriverId 12
pattern $bDRIVER_ID_MESA_LLVMPIPE :: DriverId
$mDRIVER_ID_MESA_LLVMPIPE :: forall r. DriverId -> (Void# -> r) -> (Void# -> r) -> r
DRIVER_ID_MESA_LLVMPIPE = DriverId 13
pattern $bDRIVER_ID_MOLTENVK :: DriverId
$mDRIVER_ID_MOLTENVK :: forall r. DriverId -> (Void# -> r) -> (Void# -> r) -> r
DRIVER_ID_MOLTENVK = DriverId 14
{-# 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 :: DriverId #-}
conNameDriverId :: String
conNameDriverId :: String
conNameDriverId = "DriverId"
enumPrefixDriverId :: String
enumPrefixDriverId :: String
enumPrefixDriverId = "DRIVER_ID_"
showTableDriverId :: [(DriverId, String)]
showTableDriverId :: [(DriverId, String)]
showTableDriverId =
[ (DriverId
DRIVER_ID_AMD_PROPRIETARY , "AMD_PROPRIETARY")
, (DriverId
DRIVER_ID_AMD_OPEN_SOURCE , "AMD_OPEN_SOURCE")
, (DriverId
DRIVER_ID_MESA_RADV , "MESA_RADV")
, (DriverId
DRIVER_ID_NVIDIA_PROPRIETARY , "NVIDIA_PROPRIETARY")
, (DriverId
DRIVER_ID_INTEL_PROPRIETARY_WINDOWS, "INTEL_PROPRIETARY_WINDOWS")
, (DriverId
DRIVER_ID_INTEL_OPEN_SOURCE_MESA , "INTEL_OPEN_SOURCE_MESA")
, (DriverId
DRIVER_ID_IMAGINATION_PROPRIETARY , "IMAGINATION_PROPRIETARY")
, (DriverId
DRIVER_ID_QUALCOMM_PROPRIETARY , "QUALCOMM_PROPRIETARY")
, (DriverId
DRIVER_ID_ARM_PROPRIETARY , "ARM_PROPRIETARY")
, (DriverId
DRIVER_ID_GOOGLE_SWIFTSHADER , "GOOGLE_SWIFTSHADER")
, (DriverId
DRIVER_ID_GGP_PROPRIETARY , "GGP_PROPRIETARY")
, (DriverId
DRIVER_ID_BROADCOM_PROPRIETARY , "BROADCOM_PROPRIETARY")
, (DriverId
DRIVER_ID_MESA_LLVMPIPE , "MESA_LLVMPIPE")
, (DriverId
DRIVER_ID_MOLTENVK , "MOLTENVK")
]
instance Show DriverId where
showsPrec :: Int -> DriverId -> ShowS
showsPrec = String
-> [(DriverId, String)]
-> String
-> (DriverId -> Int32)
-> (Int32 -> ShowS)
-> Int
-> DriverId
-> ShowS
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 x :: Int32
x) -> Int32
x) (Int -> Int32 -> ShowS
forall a. Show a => Int -> a -> ShowS
showsPrec 11)
instance Read DriverId where
readPrec :: ReadPrec DriverId
readPrec = String
-> [(DriverId, String)]
-> String
-> (Int32 -> DriverId)
-> ReadPrec DriverId
forall i a.
Read i =>
String -> [(a, String)] -> String -> (i -> a) -> ReadPrec a
enumReadPrec String
enumPrefixDriverId [(DriverId, String)]
showTableDriverId String
conNameDriverId Int32 -> DriverId
DriverId