content: {-# OPTIONS_GHC -fno-warn-orphans#-}
  {-# 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_GOOGLE_display_timing
         (-- * Vulkan extension: @VK_GOOGLE_display_timing@
          -- |
          --
          -- supported: @vulkan@
          --
          -- contact: @Ian Elliott @ianelliottus@
          --
          -- author: @GOOGLE@
          --
          -- type: @device@
          --
          -- Extension number: @93@
          --
          -- Required extensions: 'VK_KHR_swapchain'.
          --
  
          -- ** Required extensions: 'VK_KHR_swapchain'.
          VkPastPresentationTimingGOOGLE, VkPresentInfoKHR,
          VkPresentTimeGOOGLE, VkPresentTimesInfoGOOGLE,
          VkRefreshCycleDurationGOOGLE, VkResult(..), VkStructureType(..),
          -- > #include "vk_platform.h"
          VkGetRefreshCycleDurationGOOGLE,
          pattern VkGetRefreshCycleDurationGOOGLE,
          HS_vkGetRefreshCycleDurationGOOGLE,
          PFN_vkGetRefreshCycleDurationGOOGLE,
          VkGetPastPresentationTimingGOOGLE,
          pattern VkGetPastPresentationTimingGOOGLE,
          HS_vkGetPastPresentationTimingGOOGLE,
          PFN_vkGetPastPresentationTimingGOOGLE,
          module Graphics.Vulkan.Marshal, 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_GOOGLE_DISPLAY_TIMING_SPEC_VERSION,
          pattern VK_GOOGLE_DISPLAY_TIMING_SPEC_VERSION,
          VK_GOOGLE_DISPLAY_TIMING_EXTENSION_NAME,
          pattern VK_GOOGLE_DISPLAY_TIMING_EXTENSION_NAME,
          pattern VK_STRUCTURE_TYPE_PRESENT_TIMES_INFO_GOOGLE)
         where
  import GHC.Ptr                                                   (Ptr (..))
  import Graphics.Vulkan.Marshal
  import Graphics.Vulkan.Marshal.Proc                              (VulkanProc (..))
  import Graphics.Vulkan.Types.Enum.Result
  import Graphics.Vulkan.Types.Enum.StructureType
  import Graphics.Vulkan.Types.Handles
  import Graphics.Vulkan.Types.Struct.PastPresentationTimingGOOGLE
  import Graphics.Vulkan.Types.Struct.Present                      (VkPresentInfoKHR,
                                                                    VkPresentTimeGOOGLE,
                                                                    VkPresentTimesInfoGOOGLE)
  import Graphics.Vulkan.Types.Struct.RefreshCycleDurationGOOGLE
  
  pattern VkGetRefreshCycleDurationGOOGLE :: CString
  
  pattern VkGetRefreshCycleDurationGOOGLE <-
          (is_VkGetRefreshCycleDurationGOOGLE -> True)
    where
      VkGetRefreshCycleDurationGOOGLE = _VkGetRefreshCycleDurationGOOGLE
  
  {-# INLINE _VkGetRefreshCycleDurationGOOGLE #-}
  
  _VkGetRefreshCycleDurationGOOGLE :: CString
  _VkGetRefreshCycleDurationGOOGLE
    = Ptr "vkGetRefreshCycleDurationGOOGLE\NUL"#
  
  {-# INLINE is_VkGetRefreshCycleDurationGOOGLE #-}
  
  is_VkGetRefreshCycleDurationGOOGLE :: CString -> Bool
  is_VkGetRefreshCycleDurationGOOGLE
    = (EQ ==) . cmpCStrings _VkGetRefreshCycleDurationGOOGLE
  
  type VkGetRefreshCycleDurationGOOGLE =
       "vkGetRefreshCycleDurationGOOGLE"
  
  -- | Success codes: 'VK_SUCCESS'.
  --
  --   Error codes: 'VK_ERROR_OUT_OF_HOST_MEMORY', 'VK_ERROR_DEVICE_LOST', 'VK_ERROR_SURFACE_LOST_KHR'.
  --
  --   > VkResult vkGetRefreshCycleDurationGOOGLE
  --   >     ( VkDevice device
  --   >     , VkSwapchainKHR swapchain
  --   >     , VkRefreshCycleDurationGOOGLE* pDisplayTimingProperties
  --   >     )
  --
  --   <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#vkGetRefreshCycleDurationGOOGLE vkGetRefreshCycleDurationGOOGLE registry at www.khronos.org>
  type HS_vkGetRefreshCycleDurationGOOGLE =
       VkDevice -- ^ device
                ->
         VkSwapchainKHR -- ^ swapchain
                        -> Ptr VkRefreshCycleDurationGOOGLE -- ^ pDisplayTimingProperties
                                                            -> IO VkResult
  
  type PFN_vkGetRefreshCycleDurationGOOGLE =
       FunPtr HS_vkGetRefreshCycleDurationGOOGLE
  
  foreign import ccall unsafe "dynamic"
                 unwrapVkGetRefreshCycleDurationGOOGLEUnsafe ::
                 PFN_vkGetRefreshCycleDurationGOOGLE ->
                   HS_vkGetRefreshCycleDurationGOOGLE
  
  foreign import ccall safe "dynamic"
                 unwrapVkGetRefreshCycleDurationGOOGLESafe ::
                 PFN_vkGetRefreshCycleDurationGOOGLE ->
                   HS_vkGetRefreshCycleDurationGOOGLE
  
  instance VulkanProc "vkGetRefreshCycleDurationGOOGLE" where
      type VkProcType "vkGetRefreshCycleDurationGOOGLE" =
           HS_vkGetRefreshCycleDurationGOOGLE
      vkProcSymbol = _VkGetRefreshCycleDurationGOOGLE
  
      {-# INLINE vkProcSymbol #-}
      unwrapVkProcPtrUnsafe = unwrapVkGetRefreshCycleDurationGOOGLEUnsafe
  
      {-# INLINE unwrapVkProcPtrUnsafe #-}
      unwrapVkProcPtrSafe = unwrapVkGetRefreshCycleDurationGOOGLESafe
  
      {-# INLINE unwrapVkProcPtrSafe #-}
  
  pattern VkGetPastPresentationTimingGOOGLE :: CString
  
  pattern VkGetPastPresentationTimingGOOGLE <-
          (is_VkGetPastPresentationTimingGOOGLE -> True)
    where
      VkGetPastPresentationTimingGOOGLE
        = _VkGetPastPresentationTimingGOOGLE
  
  {-# INLINE _VkGetPastPresentationTimingGOOGLE #-}
  
  _VkGetPastPresentationTimingGOOGLE :: CString
  _VkGetPastPresentationTimingGOOGLE
    = Ptr "vkGetPastPresentationTimingGOOGLE\NUL"#
  
  {-# INLINE is_VkGetPastPresentationTimingGOOGLE #-}
  
  is_VkGetPastPresentationTimingGOOGLE :: CString -> Bool
  is_VkGetPastPresentationTimingGOOGLE
    = (EQ ==) . cmpCStrings _VkGetPastPresentationTimingGOOGLE
  
  type VkGetPastPresentationTimingGOOGLE =
       "vkGetPastPresentationTimingGOOGLE"
  
  -- | Success codes: 'VK_SUCCESS', 'VK_INCOMPLETE'.
  --
  --   Error codes: 'VK_ERROR_OUT_OF_HOST_MEMORY', 'VK_ERROR_DEVICE_LOST', 'VK_ERROR_OUT_OF_DATE_KHR', 'VK_ERROR_SURFACE_LOST_KHR'.
  --
  --   > VkResult vkGetPastPresentationTimingGOOGLE
  --   >     ( VkDevice device
  --   >     , VkSwapchainKHR swapchain
  --   >     , uint32_t* pPresentationTimingCount
  --   >     , VkPastPresentationTimingGOOGLE* pPresentationTimings
  --   >     )
  --
  --   <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#vkGetPastPresentationTimingGOOGLE vkGetPastPresentationTimingGOOGLE registry at www.khronos.org>
  type HS_vkGetPastPresentationTimingGOOGLE =
       VkDevice -- ^ device
                ->
         VkSwapchainKHR -- ^ swapchain
                        ->
           Ptr Word32 -- ^ pPresentationTimingCount
                      -> Ptr VkPastPresentationTimingGOOGLE -- ^ pPresentationTimings
                                                            -> IO VkResult
  
  type PFN_vkGetPastPresentationTimingGOOGLE =
       FunPtr HS_vkGetPastPresentationTimingGOOGLE
  
  foreign import ccall unsafe "dynamic"
                 unwrapVkGetPastPresentationTimingGOOGLEUnsafe ::
                 PFN_vkGetPastPresentationTimingGOOGLE ->
                   HS_vkGetPastPresentationTimingGOOGLE
  
  foreign import ccall safe "dynamic"
                 unwrapVkGetPastPresentationTimingGOOGLESafe ::
                 PFN_vkGetPastPresentationTimingGOOGLE ->
                   HS_vkGetPastPresentationTimingGOOGLE
  
  instance VulkanProc "vkGetPastPresentationTimingGOOGLE" where
      type VkProcType "vkGetPastPresentationTimingGOOGLE" =
           HS_vkGetPastPresentationTimingGOOGLE
      vkProcSymbol = _VkGetPastPresentationTimingGOOGLE
  
      {-# INLINE vkProcSymbol #-}
      unwrapVkProcPtrUnsafe
        = unwrapVkGetPastPresentationTimingGOOGLEUnsafe
  
      {-# INLINE unwrapVkProcPtrUnsafe #-}
      unwrapVkProcPtrSafe = unwrapVkGetPastPresentationTimingGOOGLESafe
  
      {-# INLINE unwrapVkProcPtrSafe #-}
  
  pattern VK_GOOGLE_DISPLAY_TIMING_SPEC_VERSION :: (Num a, Eq a) => a
  
  pattern VK_GOOGLE_DISPLAY_TIMING_SPEC_VERSION = 1
  
  type VK_GOOGLE_DISPLAY_TIMING_SPEC_VERSION = 1
  
  pattern VK_GOOGLE_DISPLAY_TIMING_EXTENSION_NAME :: CString
  
  pattern VK_GOOGLE_DISPLAY_TIMING_EXTENSION_NAME <-
          (is_VK_GOOGLE_DISPLAY_TIMING_EXTENSION_NAME -> True)
    where
      VK_GOOGLE_DISPLAY_TIMING_EXTENSION_NAME
        = _VK_GOOGLE_DISPLAY_TIMING_EXTENSION_NAME
  
  {-# INLINE _VK_GOOGLE_DISPLAY_TIMING_EXTENSION_NAME #-}
  
  _VK_GOOGLE_DISPLAY_TIMING_EXTENSION_NAME :: CString
  _VK_GOOGLE_DISPLAY_TIMING_EXTENSION_NAME
    = Ptr "VK_GOOGLE_display_timing\NUL"#
  
  {-# INLINE is_VK_GOOGLE_DISPLAY_TIMING_EXTENSION_NAME #-}
  
  is_VK_GOOGLE_DISPLAY_TIMING_EXTENSION_NAME :: CString -> Bool
  is_VK_GOOGLE_DISPLAY_TIMING_EXTENSION_NAME
    = (EQ ==) . cmpCStrings _VK_GOOGLE_DISPLAY_TIMING_EXTENSION_NAME
  
  type VK_GOOGLE_DISPLAY_TIMING_EXTENSION_NAME =
       "VK_GOOGLE_display_timing"
  
  pattern VK_STRUCTURE_TYPE_PRESENT_TIMES_INFO_GOOGLE ::
          VkStructureType
  
  pattern VK_STRUCTURE_TYPE_PRESENT_TIMES_INFO_GOOGLE =
          VkStructureType 1000092000
  