{-# language CPP #-}
-- No documentation found for Chapter "DriverId"
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))

-- | VkDriverId - Khronos driver IDs
--
-- = Description
--
-- Note
--
-- Khronos driver IDs may be allocated by vendors at any time. There may be
-- multiple driver IDs for the same vendor, representing different drivers
-- (for e.g. different platforms, proprietary or open source, etc.). Only
-- the latest canonical versions of this Specification, of the
-- corresponding @vk.xml@ API Registry, and of the corresponding
-- @vulkan_core.h@ header file /must/ contain all reserved Khronos driver
-- IDs.
--
-- Only driver IDs registered with Khronos are given symbolic names. There
-- /may/ be unregistered driver IDs returned.
--
-- = See Also
--
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#VK_KHR_driver_properties VK_KHR_driver_properties>,
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#VK_VERSION_1_2 VK_VERSION_1_2>,
-- 'Vulkan.Core12.Promoted_From_VK_KHR_driver_properties.PhysicalDeviceDriverProperties',
-- 'Vulkan.Core12.PhysicalDeviceVulkan12Properties'
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)

-- Note that the zero instance does not produce a valid value, passing 'zero' to Vulkan will result in an error

-- No documentation found for Nested "VkDriverId" "VK_DRIVER_ID_AMD_PROPRIETARY"
pattern $bDRIVER_ID_AMD_PROPRIETARY :: DriverId
$mDRIVER_ID_AMD_PROPRIETARY :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_AMD_PROPRIETARY = DriverId 1

-- No documentation found for Nested "VkDriverId" "VK_DRIVER_ID_AMD_OPEN_SOURCE"
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

-- No documentation found for Nested "VkDriverId" "VK_DRIVER_ID_MESA_RADV"
pattern $bDRIVER_ID_MESA_RADV :: DriverId
$mDRIVER_ID_MESA_RADV :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_MESA_RADV = DriverId 3

-- No documentation found for Nested "VkDriverId" "VK_DRIVER_ID_NVIDIA_PROPRIETARY"
pattern $bDRIVER_ID_NVIDIA_PROPRIETARY :: DriverId
$mDRIVER_ID_NVIDIA_PROPRIETARY :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_NVIDIA_PROPRIETARY = DriverId 4

-- No documentation found for Nested "VkDriverId" "VK_DRIVER_ID_INTEL_PROPRIETARY_WINDOWS"
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

-- No documentation found for Nested "VkDriverId" "VK_DRIVER_ID_INTEL_OPEN_SOURCE_MESA"
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

-- No documentation found for Nested "VkDriverId" "VK_DRIVER_ID_IMAGINATION_PROPRIETARY"
pattern $bDRIVER_ID_IMAGINATION_PROPRIETARY :: DriverId
$mDRIVER_ID_IMAGINATION_PROPRIETARY :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_IMAGINATION_PROPRIETARY = DriverId 7

-- No documentation found for Nested "VkDriverId" "VK_DRIVER_ID_QUALCOMM_PROPRIETARY"
pattern $bDRIVER_ID_QUALCOMM_PROPRIETARY :: DriverId
$mDRIVER_ID_QUALCOMM_PROPRIETARY :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_QUALCOMM_PROPRIETARY = DriverId 8

-- No documentation found for Nested "VkDriverId" "VK_DRIVER_ID_ARM_PROPRIETARY"
pattern $bDRIVER_ID_ARM_PROPRIETARY :: DriverId
$mDRIVER_ID_ARM_PROPRIETARY :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_ARM_PROPRIETARY = DriverId 9

-- No documentation found for Nested "VkDriverId" "VK_DRIVER_ID_GOOGLE_SWIFTSHADER"
pattern $bDRIVER_ID_GOOGLE_SWIFTSHADER :: DriverId
$mDRIVER_ID_GOOGLE_SWIFTSHADER :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_GOOGLE_SWIFTSHADER = DriverId 10

-- No documentation found for Nested "VkDriverId" "VK_DRIVER_ID_GGP_PROPRIETARY"
pattern $bDRIVER_ID_GGP_PROPRIETARY :: DriverId
$mDRIVER_ID_GGP_PROPRIETARY :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_GGP_PROPRIETARY = DriverId 11

-- No documentation found for Nested "VkDriverId" "VK_DRIVER_ID_BROADCOM_PROPRIETARY"
pattern $bDRIVER_ID_BROADCOM_PROPRIETARY :: DriverId
$mDRIVER_ID_BROADCOM_PROPRIETARY :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_BROADCOM_PROPRIETARY = DriverId 12

-- No documentation found for Nested "VkDriverId" "VK_DRIVER_ID_MESA_LLVMPIPE"
pattern $bDRIVER_ID_MESA_LLVMPIPE :: DriverId
$mDRIVER_ID_MESA_LLVMPIPE :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_MESA_LLVMPIPE = DriverId 13

-- No documentation found for Nested "VkDriverId" "VK_DRIVER_ID_MOLTENVK"
pattern $bDRIVER_ID_MOLTENVK :: DriverId
$mDRIVER_ID_MOLTENVK :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_MOLTENVK = DriverId 14

-- No documentation found for Nested "VkDriverId" "VK_DRIVER_ID_COREAVI_PROPRIETARY"
pattern $bDRIVER_ID_COREAVI_PROPRIETARY :: DriverId
$mDRIVER_ID_COREAVI_PROPRIETARY :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_COREAVI_PROPRIETARY = DriverId 15

-- No documentation found for Nested "VkDriverId" "VK_DRIVER_ID_JUICE_PROPRIETARY"
pattern $bDRIVER_ID_JUICE_PROPRIETARY :: DriverId
$mDRIVER_ID_JUICE_PROPRIETARY :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_JUICE_PROPRIETARY = DriverId 16

-- No documentation found for Nested "VkDriverId" "VK_DRIVER_ID_VERISILICON_PROPRIETARY"
pattern $bDRIVER_ID_VERISILICON_PROPRIETARY :: DriverId
$mDRIVER_ID_VERISILICON_PROPRIETARY :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_VERISILICON_PROPRIETARY = DriverId 17

-- No documentation found for Nested "VkDriverId" "VK_DRIVER_ID_MESA_TURNIP"
pattern $bDRIVER_ID_MESA_TURNIP :: DriverId
$mDRIVER_ID_MESA_TURNIP :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_MESA_TURNIP = DriverId 18

-- No documentation found for Nested "VkDriverId" "VK_DRIVER_ID_MESA_V3DV"
pattern $bDRIVER_ID_MESA_V3DV :: DriverId
$mDRIVER_ID_MESA_V3DV :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_MESA_V3DV = DriverId 19

-- No documentation found for Nested "VkDriverId" "VK_DRIVER_ID_MESA_PANVK"
pattern $bDRIVER_ID_MESA_PANVK :: DriverId
$mDRIVER_ID_MESA_PANVK :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_MESA_PANVK = DriverId 20

-- No documentation found for Nested "VkDriverId" "VK_DRIVER_ID_SAMSUNG_PROPRIETARY"
pattern $bDRIVER_ID_SAMSUNG_PROPRIETARY :: DriverId
$mDRIVER_ID_SAMSUNG_PROPRIETARY :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_SAMSUNG_PROPRIETARY = DriverId 21

-- No documentation found for Nested "VkDriverId" "VK_DRIVER_ID_MESA_VENUS"
pattern $bDRIVER_ID_MESA_VENUS :: DriverId
$mDRIVER_ID_MESA_VENUS :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_MESA_VENUS = DriverId 22

-- No documentation found for Nested "VkDriverId" "VK_DRIVER_ID_MESA_DOZEN"
pattern $bDRIVER_ID_MESA_DOZEN :: DriverId
$mDRIVER_ID_MESA_DOZEN :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_MESA_DOZEN = DriverId 23

-- No documentation found for Nested "VkDriverId" "VK_DRIVER_ID_MESA_NVK"
pattern $bDRIVER_ID_MESA_NVK :: DriverId
$mDRIVER_ID_MESA_NVK :: forall {r}. DriverId -> ((# #) -> r) -> ((# #) -> r) -> r
DRIVER_ID_MESA_NVK = DriverId 24

-- No documentation found for Nested "VkDriverId" "VK_DRIVER_ID_IMAGINATION_OPEN_SOURCE_MESA"
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

-- No documentation found for Nested "VkDriverId" "VK_DRIVER_ID_MESA_AGXV"
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