content: {-# OPTIONS_GHC -fno-warn-orphans#-}
  {-# OPTIONS_GHC -fno-warn-unused-imports#-}
  {-# OPTIONS_HADDOCK not-home#-}
  {-# LANGUAGE CPP                      #-}
  {-# LANGUAGE DataKinds                #-}
  {-# LANGUAGE FlexibleInstances        #-}
  {-# LANGUAGE ForeignFunctionInterface #-}
  {-# LANGUAGE MagicHash                #-}
  {-# LANGUAGE PatternSynonyms          #-}
  {-# LANGUAGE Strict                   #-}
  {-# LANGUAGE TypeFamilies             #-}
  {-# LANGUAGE ViewPatterns             #-}
  module Graphics.Vulkan.Ext.VK_AMD_shader_info
         (-- * Vulkan extension: @VK_AMD_shader_info@
          -- |
          --
          -- supported: @vulkan@
          --
          -- contact: @Jaakko Konttinen @jaakkoamd@
          --
          -- author: @AMD@
          --
          -- type: @device@
          --
          -- Extension number: @43@
          module Graphics.Vulkan.Marshal, AHardwareBuffer(),
          ANativeWindow(), CAMetalLayer(), VkBool32(..), VkDeviceAddress(..),
          VkDeviceSize(..), VkFlags(..), VkSampleMask(..),
          VkShaderFloatControlsIndependence(..), VkShaderInfoTypeAMD(..),
          VkShaderStageBitmask(..), VkShaderCorePropertiesBitmaskAMD(..),
          VkShaderCorePropertiesFlagBitsAMD(),
          VkShaderCorePropertiesFlagsAMD(),
          VkShaderFloatControlsIndependenceKHR(..),
          VkShaderModuleCreateBitmask(..), VkShaderModuleCreateFlagBits(),
          VkShaderModuleCreateFlags(), VkShaderStageFlagBits(),
          VkShaderStageFlags(), VkShaderResourceUsageAMD,
          VkShaderStatisticsInfoAMD, -- > #include "vk_platform.h"
                                     VkGetShaderInfoAMD,
          pattern VkGetShaderInfoAMD, HS_vkGetShaderInfoAMD,
          PFN_vkGetShaderInfoAMD, VkResult(..), VkAccelerationStructureKHR,
          VkAccelerationStructureKHR_T(), VkAccelerationStructureNV,
          VkAccelerationStructureNV_T(), VkBuffer, VkBufferView,
          VkBufferView_T(), VkBuffer_T(), VkCommandBuffer,
          VkCommandBuffer_T(), VkCommandPool, VkCommandPool_T(),
          VkDebugReportCallbackEXT, VkDebugReportCallbackEXT_T(),
          VkDebugUtilsMessengerEXT, VkDebugUtilsMessengerEXT_T(),
          VkDeferredOperationKHR, VkDeferredOperationKHR_T(),
          VkDescriptorPool, VkDescriptorPool_T(), VkDescriptorSet,
          VkDescriptorSetLayout, VkDescriptorSetLayout_T(),
          VkDescriptorSet_T(), VkDescriptorUpdateTemplate,
          VkDescriptorUpdateTemplateKHR, VkDescriptorUpdateTemplateKHR_T(),
          VkDescriptorUpdateTemplate_T(), VkDevice, VkDeviceMemory,
          VkDeviceMemory_T(), VkDevice_T(), VkDisplayKHR, VkDisplayKHR_T(),
          VkDisplayModeKHR, VkDisplayModeKHR_T(), VkEvent, VkEvent_T(),
          VkFence, VkFence_T(), VkFramebuffer, VkFramebuffer_T(), VkImage,
          VkImageView, VkImageView_T(), VkImage_T(),
          VkIndirectCommandsLayoutNV, VkIndirectCommandsLayoutNV_T(),
          VkInstance, VkInstance_T(), VkPerformanceConfigurationINTEL,
          VkPerformanceConfigurationINTEL_T(), VkPhysicalDevice,
          VkPhysicalDevice_T(), VkPipeline, VkPipelineCache,
          VkPipelineCache_T(), VkPipelineLayout, VkPipelineLayout_T(),
          VkPipeline_T(), VkPrivateDataSlotEXT, VkPrivateDataSlotEXT_T(),
          VkQueryPool, VkQueryPool_T(), VkQueue, VkQueue_T(), VkRenderPass,
          VkRenderPass_T(), VkSampler, VkSamplerYcbcrConversion,
          VkSamplerYcbcrConversionKHR, VkSamplerYcbcrConversionKHR_T(),
          VkSamplerYcbcrConversion_T(), VkSampler_T(), VkSemaphore,
          VkSemaphore_T(), VkShaderModule, VkShaderModule_T(), VkSurfaceKHR,
          VkSurfaceKHR_T(), VkSwapchainKHR, VkSwapchainKHR_T(),
          VkValidationCacheEXT, VkValidationCacheEXT_T(),
          VK_AMD_SHADER_INFO_SPEC_VERSION,
          pattern VK_AMD_SHADER_INFO_SPEC_VERSION,
          VK_AMD_SHADER_INFO_EXTENSION_NAME,
          pattern VK_AMD_SHADER_INFO_EXTENSION_NAME)
         where
  import GHC.Ptr                             (Ptr (..))
  import Graphics.Vulkan.Marshal
  import Graphics.Vulkan.Marshal.Proc        (VulkanProc (..))
  import Graphics.Vulkan.Types.BaseTypes
  import Graphics.Vulkan.Types.Enum.Result
  import Graphics.Vulkan.Types.Enum.Shader
  import Graphics.Vulkan.Types.Handles
  import Graphics.Vulkan.Types.Struct.Shader (VkShaderResourceUsageAMD,
                                              VkShaderStatisticsInfoAMD)
  
  pattern VkGetShaderInfoAMD :: CString
  
  pattern VkGetShaderInfoAMD <- (is_VkGetShaderInfoAMD -> True)
    where
      VkGetShaderInfoAMD = _VkGetShaderInfoAMD
  
  {-# INLINE _VkGetShaderInfoAMD #-}
  
  _VkGetShaderInfoAMD :: CString
  _VkGetShaderInfoAMD = Ptr "vkGetShaderInfoAMD\NUL"#
  
  {-# INLINE is_VkGetShaderInfoAMD #-}
  
  is_VkGetShaderInfoAMD :: CString -> Bool
  is_VkGetShaderInfoAMD = (EQ ==) . cmpCStrings _VkGetShaderInfoAMD
  
  type VkGetShaderInfoAMD = "vkGetShaderInfoAMD"
  
  -- | Success codes: 'VK_SUCCESS', 'VK_INCOMPLETE'.
  --
  --   Error codes: 'VK_ERROR_FEATURE_NOT_PRESENT', 'VK_ERROR_OUT_OF_HOST_MEMORY'.
  --
  --   > VkResult vkGetShaderInfoAMD
  --   >     ( VkDevice device
  --   >     , VkPipeline pipeline
  --   >     , VkShaderStageFlagBits shaderStage
  --   >     , VkShaderInfoTypeAMD infoType
  --   >     , size_t* pInfoSize
  --   >     , void* pInfo
  --   >     )
  --
  --   <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#vkGetShaderInfoAMD vkGetShaderInfoAMD registry at www.khronos.org>
  type HS_vkGetShaderInfoAMD =
       VkDevice -- ^ device
                ->
         VkPipeline -- ^ pipeline
                    ->
           VkShaderStageFlagBits -- ^ shaderStage
                                 ->
             VkShaderInfoTypeAMD -- ^ infoType
                                 -> Ptr CSize -- ^ pInfoSize
                                              -> Ptr Void -- ^ pInfo
                                                          -> IO VkResult
  
  type PFN_vkGetShaderInfoAMD = FunPtr HS_vkGetShaderInfoAMD
  
  foreign import ccall unsafe "dynamic"
                 unwrapVkGetShaderInfoAMDUnsafe ::
                 PFN_vkGetShaderInfoAMD -> HS_vkGetShaderInfoAMD
  
  foreign import ccall safe "dynamic" unwrapVkGetShaderInfoAMDSafe ::
                 PFN_vkGetShaderInfoAMD -> HS_vkGetShaderInfoAMD
  
  instance VulkanProc "vkGetShaderInfoAMD" where
      type VkProcType "vkGetShaderInfoAMD" = HS_vkGetShaderInfoAMD
      vkProcSymbol = _VkGetShaderInfoAMD
  
      {-# INLINE vkProcSymbol #-}
      unwrapVkProcPtrUnsafe = unwrapVkGetShaderInfoAMDUnsafe
  
      {-# INLINE unwrapVkProcPtrUnsafe #-}
      unwrapVkProcPtrSafe = unwrapVkGetShaderInfoAMDSafe
  
      {-# INLINE unwrapVkProcPtrSafe #-}
  
  pattern VK_AMD_SHADER_INFO_SPEC_VERSION :: (Num a, Eq a) => a
  
  pattern VK_AMD_SHADER_INFO_SPEC_VERSION = 1
  
  type VK_AMD_SHADER_INFO_SPEC_VERSION = 1
  
  pattern VK_AMD_SHADER_INFO_EXTENSION_NAME :: CString
  
  pattern VK_AMD_SHADER_INFO_EXTENSION_NAME <-
          (is_VK_AMD_SHADER_INFO_EXTENSION_NAME -> True)
    where
      VK_AMD_SHADER_INFO_EXTENSION_NAME
        = _VK_AMD_SHADER_INFO_EXTENSION_NAME
  
  {-# INLINE _VK_AMD_SHADER_INFO_EXTENSION_NAME #-}
  
  _VK_AMD_SHADER_INFO_EXTENSION_NAME :: CString
  _VK_AMD_SHADER_INFO_EXTENSION_NAME = Ptr "VK_AMD_shader_info\NUL"#
  
  {-# INLINE is_VK_AMD_SHADER_INFO_EXTENSION_NAME #-}
  
  is_VK_AMD_SHADER_INFO_EXTENSION_NAME :: CString -> Bool
  is_VK_AMD_SHADER_INFO_EXTENSION_NAME
    = (EQ ==) . cmpCStrings _VK_AMD_SHADER_INFO_EXTENSION_NAME
  
  type VK_AMD_SHADER_INFO_EXTENSION_NAME = "VK_AMD_shader_info"
  