{-# OPTIONS_HADDOCK not-home#-}
{-# LANGUAGE DataKinds       #-}
{-# LANGUAGE MagicHash       #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE Strict          #-}
{-# LANGUAGE ViewPatterns    #-}
module Graphics.Vulkan.Ext.VK_EXT_pci_bus_info
       (-- * Vulkan extension: @VK_EXT_pci_bus_info@
        -- |
        --
        -- supported: @vulkan@
        --
        -- contact: @Matthaeus G. Chajdas @anteru@
        --
        -- author: @EXT@
        --
        -- type: @device@
        --
        -- Extension number: @213@
        --
        -- Required extensions: 'VK_KHR_get_physical_device_properties2'.
        --

        -- ** Required extensions: 'VK_KHR_get_physical_device_properties2'.
        module Graphics.Vulkan.Marshal, AHardwareBuffer(),
        ANativeWindow(), CAMetalLayer(), VkBool32(..), VkDeviceAddress(..),
        VkDeviceSize(..), VkFlags(..), VkSampleMask(..),
        VkPhysicalDeviceLimits, VkPhysicalDevicePCIBusInfoPropertiesEXT,
        VkPhysicalDeviceProperties, VkPhysicalDeviceProperties2,
        VkPhysicalDeviceSparseProperties, VkPhysicalDeviceType(..),
        VkSampleCountBitmask(..), VkSampleCountFlagBits(),
        VkSampleCountFlags(), VkStructureType(..),
        -- > #include "vk_platform.h"
        VK_EXT_PCI_BUS_INFO_SPEC_VERSION,
        pattern VK_EXT_PCI_BUS_INFO_SPEC_VERSION,
        VK_EXT_PCI_BUS_INFO_EXTENSION_NAME,
        pattern VK_EXT_PCI_BUS_INFO_EXTENSION_NAME,
        pattern VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PCI_BUS_INFO_PROPERTIES_EXT)
       where
import GHC.Ptr                                       (Ptr (..))
import Graphics.Vulkan.Marshal
import Graphics.Vulkan.Types.BaseTypes
import Graphics.Vulkan.Types.Enum.PhysicalDeviceType
import Graphics.Vulkan.Types.Enum.SampleCountFlags
import Graphics.Vulkan.Types.Enum.StructureType
import Graphics.Vulkan.Types.Struct.PhysicalDevice   (VkPhysicalDeviceLimits, VkPhysicalDevicePCIBusInfoPropertiesEXT,
                                                      VkPhysicalDeviceProperties,
                                                      VkPhysicalDeviceProperties2,
                                                      VkPhysicalDeviceSparseProperties)

pattern VK_EXT_PCI_BUS_INFO_SPEC_VERSION :: (Num a, Eq a) => a

pattern $bVK_EXT_PCI_BUS_INFO_SPEC_VERSION :: forall a. (Num a, Eq a) => a
$mVK_EXT_PCI_BUS_INFO_SPEC_VERSION :: forall {r} {a}.
(Num a, Eq a) =>
a -> (Void# -> r) -> (Void# -> r) -> r
VK_EXT_PCI_BUS_INFO_SPEC_VERSION = 2

type VK_EXT_PCI_BUS_INFO_SPEC_VERSION = 2

pattern VK_EXT_PCI_BUS_INFO_EXTENSION_NAME :: CString

pattern $bVK_EXT_PCI_BUS_INFO_EXTENSION_NAME :: CString
$mVK_EXT_PCI_BUS_INFO_EXTENSION_NAME :: forall {r}. CString -> (Void# -> r) -> (Void# -> r) -> r
VK_EXT_PCI_BUS_INFO_EXTENSION_NAME <-
        (is_VK_EXT_PCI_BUS_INFO_EXTENSION_NAME -> True)
  where
    VK_EXT_PCI_BUS_INFO_EXTENSION_NAME
      = CString
_VK_EXT_PCI_BUS_INFO_EXTENSION_NAME

{-# INLINE _VK_EXT_PCI_BUS_INFO_EXTENSION_NAME #-}

_VK_EXT_PCI_BUS_INFO_EXTENSION_NAME :: CString
_VK_EXT_PCI_BUS_INFO_EXTENSION_NAME :: CString
_VK_EXT_PCI_BUS_INFO_EXTENSION_NAME
  = Addr# -> CString
forall a. Addr# -> Ptr a
Ptr Addr#
"VK_EXT_pci_bus_info\NUL"#

{-# INLINE is_VK_EXT_PCI_BUS_INFO_EXTENSION_NAME #-}

is_VK_EXT_PCI_BUS_INFO_EXTENSION_NAME :: CString -> Bool
is_VK_EXT_PCI_BUS_INFO_EXTENSION_NAME :: CString -> Bool
is_VK_EXT_PCI_BUS_INFO_EXTENSION_NAME
  = (Ordering
EQ Ordering -> Ordering -> Bool
forall a. Eq a => a -> a -> Bool
==) (Ordering -> Bool) -> (CString -> Ordering) -> CString -> Bool
forall b c a. (b -> c) -> (a -> b) -> a -> c
. CString -> CString -> Ordering
cmpCStrings CString
_VK_EXT_PCI_BUS_INFO_EXTENSION_NAME

type VK_EXT_PCI_BUS_INFO_EXTENSION_NAME = "VK_EXT_pci_bus_info"

pattern VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PCI_BUS_INFO_PROPERTIES_EXT
        :: VkStructureType

pattern $bVK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PCI_BUS_INFO_PROPERTIES_EXT :: VkStructureType
$mVK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PCI_BUS_INFO_PROPERTIES_EXT :: forall {r}. VkStructureType -> (Void# -> r) -> (Void# -> r) -> r
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PCI_BUS_INFO_PROPERTIES_EXT
        = VkStructureType 1000212000