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_EXT_discard_rectangles
         (-- * Vulkan extension: @VK_EXT_discard_rectangles@
          -- |
          --
          -- supported: @vulkan@
          --
          -- contact: @Piers Daniell @pdaniell-nv@
          --
          -- author: @NV@
          --
          -- type: @device@
          --
          -- Extension number: @100@
          --
          -- Required extensions: 'VK_KHR_get_physical_device_properties2'.
          --
  
          -- ** Required extensions: 'VK_KHR_get_physical_device_properties2'.
          module Graphics.Vulkan.Marshal, VkBlendFactor(..), VkBlendOp(..),
          VkBlendOverlapEXT(..), AHardwareBuffer(), ANativeWindow(),
          CAMetalLayer(), VkBool32(..), VkDeviceAddress(..),
          VkDeviceSize(..), VkFlags(..), VkSampleMask(..),
          pattern VK_COLORSPACE_SRGB_NONLINEAR_KHR,
          VkColorComponentBitmask(..), VkColorSpaceKHR(..),
          VkColorComponentFlagBits(), VkColorComponentFlags(),
          VkCompareOp(..), VkCullModeBitmask(..), VkCullModeFlagBits(),
          VkCullModeFlags(), VkDiscardRectangleModeEXT(..),
          VkDynamicState(..), VkExtent2D, VkFormat(..),
          VkFormatFeatureBitmask(..), VkFormatFeatureFlagBits(),
          VkFormatFeatureFlags(), VkFrontFace(..),
          VkGraphicsPipelineCreateInfo, VkLogicOp(..), VkOffset2D,
          VkPhysicalDeviceDiscardRectanglePropertiesEXT,
          VkPhysicalDeviceLimits, VkPhysicalDeviceProperties,
          VkPhysicalDeviceProperties2, VkPhysicalDeviceSparseProperties,
          VkPhysicalDeviceType(..), VkPipelineColorBlendAttachmentState,
          VkAndroidSurfaceCreateFlagsKHR(..), VkBufferViewCreateFlags(..),
          VkBuildAccelerationStructureFlagsNV(..),
          VkCommandPoolTrimFlags(..), VkCommandPoolTrimFlagsKHR(..),
          VkDebugUtilsMessengerCallbackDataFlagsEXT(..),
          VkDebugUtilsMessengerCreateFlagsEXT(..),
          VkDescriptorBindingFlagsEXT(..), VkDescriptorPoolResetFlags(..),
          VkDescriptorUpdateTemplateCreateFlags(..),
          VkDescriptorUpdateTemplateCreateFlagsKHR(..),
          VkDeviceCreateFlags(..), VkDirectFBSurfaceCreateFlagsEXT(..),
          VkDisplayModeCreateFlagsKHR(..),
          VkDisplaySurfaceCreateFlagsKHR(..), VkEventCreateFlags(..),
          VkExternalFenceFeatureFlagsKHR(..),
          VkExternalFenceHandleTypeFlagsKHR(..),
          VkExternalMemoryFeatureFlagsKHR(..),
          VkExternalMemoryHandleTypeFlagsKHR(..),
          VkExternalSemaphoreFeatureFlagsKHR(..),
          VkExternalSemaphoreHandleTypeFlagsKHR(..),
          VkFenceImportFlagsKHR(..), VkGeometryFlagsNV(..),
          VkGeometryInstanceFlagsNV(..), VkHeadlessSurfaceCreateFlagsEXT(..),
          VkIOSSurfaceCreateFlagsMVK(..),
          VkImagePipeSurfaceCreateFlagsFUCHSIA(..),
          VkInstanceCreateFlags(..), VkMacOSSurfaceCreateFlagsMVK(..),
          VkMemoryAllocateFlagsKHR(..), VkMemoryMapFlags(..),
          VkMetalSurfaceCreateFlagsEXT(..), VkPeerMemoryFeatureFlagsKHR(..),
          VkPipelineColorBlendStateCreateFlags(..),
          VkPipelineCoverageModulationStateCreateFlagsNV(..),
          VkPipelineCoverageReductionStateCreateFlagsNV(..),
          VkPipelineCoverageToColorStateCreateFlagsNV(..),
          VkPipelineDepthStencilStateCreateFlags(..),
          VkPipelineDiscardRectangleStateCreateFlagsEXT(..),
          VkPipelineDynamicStateCreateFlags(..),
          VkPipelineInputAssemblyStateCreateFlags(..),
          VkPipelineLayoutCreateFlags(..),
          VkPipelineMultisampleStateCreateFlags(..),
          VkPipelineRasterizationConservativeStateCreateFlagsEXT(..),
          VkPipelineRasterizationDepthClipStateCreateFlagsEXT(..),
          VkPipelineRasterizationStateCreateFlags(..),
          VkPipelineRasterizationStateStreamCreateFlagsEXT(..),
          VkPipelineTessellationStateCreateFlags(..),
          VkPipelineVertexInputStateCreateFlags(..),
          VkPipelineViewportStateCreateFlags(..),
          VkPipelineViewportSwizzleStateCreateFlagsNV(..),
          VkQueryPoolCreateFlags(..), VkResolveModeFlagsKHR(..),
          VkSemaphoreCreateFlags(..), VkSemaphoreImportFlagsKHR(..),
          VkSemaphoreWaitFlagsKHR(..),
          VkStreamDescriptorSurfaceCreateFlagsGGP(..),
          VkValidationCacheCreateFlagsEXT(..), VkViSurfaceCreateFlagsNN(..),
          VkWaylandSurfaceCreateFlagsKHR(..),
          VkWin32SurfaceCreateFlagsKHR(..), VkXcbSurfaceCreateFlagsKHR(..),
          VkXlibSurfaceCreateFlagsKHR(..),
          VkPipelineColorBlendStateCreateInfo, VkPipelineBindPoint(..),
          VkPipelineCacheHeaderVersion(..), VkPipelineCreateBitmask(..),
          VkPipelineCreationFeedbackBitmaskEXT(..),
          VkPipelineExecutableStatisticFormatKHR(..),
          VkPipelineStageBitmask(..), VkPipelineCacheCreateBitmask(..),
          VkPipelineCacheCreateFlagBits(), VkPipelineCacheCreateFlags(),
          VkPipelineCompilerControlBitmaskAMD(..),
          VkPipelineCompilerControlFlagBitsAMD(),
          VkPipelineCompilerControlFlagsAMD(), VkPipelineCreateFlagBits(),
          VkPipelineCreateFlags(), VkPipelineCreationFeedbackFlagBitsEXT(),
          VkPipelineCreationFeedbackFlagsEXT(),
          VkPipelineShaderStageCreateBitmask(..),
          VkPipelineShaderStageCreateFlagBits(),
          VkPipelineShaderStageCreateFlags(), VkPipelineStageFlagBits(),
          VkPipelineStageFlags(), VkPipelineDepthStencilStateCreateInfo,
          VkPipelineDiscardRectangleStateCreateInfoEXT,
          VkPipelineDynamicStateCreateInfo,
          VkPipelineInputAssemblyStateCreateInfo,
          VkPipelineMultisampleStateCreateInfo,
          VkPipelineRasterizationStateCreateInfo,
          VkPipelineShaderStageCreateInfo,
          VkPipelineTessellationStateCreateInfo,
          VkPipelineVertexInputStateCreateInfo,
          VkPipelineViewportStateCreateInfo, VkPolygonMode(..),
          VkPrimitiveTopology(..), VkRect2D, VkSampleCountBitmask(..),
          VkSampleCountFlagBits(), VkSampleCountFlags(),
          VkShaderFloatControlsIndependence(..), VkShaderInfoTypeAMD(..),
          VkShaderStageBitmask(..), VkShaderCorePropertiesBitmaskAMD(..),
          VkShaderCorePropertiesFlagBitsAMD(),
          VkShaderCorePropertiesFlagsAMD(),
          VkShaderFloatControlsIndependenceKHR(..),
          VkShaderModuleCreateBitmask(..), VkShaderModuleCreateFlagBits(),
          VkShaderModuleCreateFlags(), VkShaderStageFlagBits(),
          VkShaderStageFlags(), VkSpecializationInfo,
          VkSpecializationMapEntry, VkStencilFaceBitmask(..),
          VkStencilOp(..), VkStencilFaceFlagBits(), VkStencilFaceFlags(),
          VkStencilOpState, VkStructureType(..),
          VkVertexInputAttributeDescription, VkVertexInputBindingDescription,
          VkVertexInputRate(..), VkViewport, -- > #include "vk_platform.h"
                                             VkCmdSetDiscardRectangleEXT,
          pattern VkCmdSetDiscardRectangleEXT,
          HS_vkCmdSetDiscardRectangleEXT, PFN_vkCmdSetDiscardRectangleEXT,
          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(), VkExtent3D,
          VkOffset3D, VkRectLayerKHR, VK_EXT_DISCARD_RECTANGLES_SPEC_VERSION,
          pattern VK_EXT_DISCARD_RECTANGLES_SPEC_VERSION,
          VK_EXT_DISCARD_RECTANGLES_EXTENSION_NAME,
          pattern VK_EXT_DISCARD_RECTANGLES_EXTENSION_NAME,
          pattern VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DISCARD_RECTANGLE_PROPERTIES_EXT,
          pattern VK_STRUCTURE_TYPE_PIPELINE_DISCARD_RECTANGLE_STATE_CREATE_INFO_EXT,
          pattern VK_DYNAMIC_STATE_DISCARD_RECTANGLE_EXT)
         where
  import GHC.Ptr                                            (Ptr (..))
  import Graphics.Vulkan.Marshal
  import Graphics.Vulkan.Marshal.Proc                       (VulkanProc (..))
  import Graphics.Vulkan.Types.BaseTypes
  import Graphics.Vulkan.Types.Bitmasks
  import Graphics.Vulkan.Types.Enum.Blend
  import Graphics.Vulkan.Types.Enum.Color
  import Graphics.Vulkan.Types.Enum.CompareOp
  import Graphics.Vulkan.Types.Enum.CullModeFlags
  import Graphics.Vulkan.Types.Enum.DiscardRectangleModeEXT
  import Graphics.Vulkan.Types.Enum.DynamicState
  import Graphics.Vulkan.Types.Enum.Format
  import Graphics.Vulkan.Types.Enum.FrontFace
  import Graphics.Vulkan.Types.Enum.LogicOp
  import Graphics.Vulkan.Types.Enum.PhysicalDeviceType
  import Graphics.Vulkan.Types.Enum.Pipeline
  import Graphics.Vulkan.Types.Enum.PolygonMode
  import Graphics.Vulkan.Types.Enum.PrimitiveTopology
  import Graphics.Vulkan.Types.Enum.SampleCountFlags
  import Graphics.Vulkan.Types.Enum.Shader
  import Graphics.Vulkan.Types.Enum.Stencil
  import Graphics.Vulkan.Types.Enum.StructureType
  import Graphics.Vulkan.Types.Enum.VertexInputRate
  import Graphics.Vulkan.Types.Handles
  import Graphics.Vulkan.Types.Struct.Extent
  import Graphics.Vulkan.Types.Struct.Offset
  import Graphics.Vulkan.Types.Struct.PhysicalDevice        (VkPhysicalDeviceDiscardRectanglePropertiesEXT,
                                                             VkPhysicalDeviceLimits,
                                                             VkPhysicalDeviceProperties,
                                                             VkPhysicalDeviceProperties2,
                                                             VkPhysicalDeviceSparseProperties)
  import Graphics.Vulkan.Types.Struct.Pipeline              (VkGraphicsPipelineCreateInfo,
                                                             VkPipelineColorBlendAttachmentState,
                                                             VkPipelineColorBlendStateCreateInfo,
                                                             VkPipelineDepthStencilStateCreateInfo,
                                                             VkPipelineDiscardRectangleStateCreateInfoEXT,
                                                             VkPipelineDynamicStateCreateInfo,
                                                             VkPipelineInputAssemblyStateCreateInfo,
                                                             VkPipelineMultisampleStateCreateInfo,
                                                             VkPipelineRasterizationStateCreateInfo,
                                                             VkPipelineShaderStageCreateInfo,
                                                             VkPipelineTessellationStateCreateInfo,
                                                             VkPipelineVertexInputStateCreateInfo,
                                                             VkPipelineViewportStateCreateInfo)
  import Graphics.Vulkan.Types.Struct.Rect
  import Graphics.Vulkan.Types.Struct.Specialization        (VkSpecializationInfo, VkSpecializationMapEntry)
  import Graphics.Vulkan.Types.Struct.StencilOpState        (VkStencilOpState)
  import Graphics.Vulkan.Types.Struct.VertexInput           (VkVertexInputAttributeDescription,
                                                             VkVertexInputBindingDescription)
  import Graphics.Vulkan.Types.Struct.Viewport              (VkViewport)
  
  pattern VkCmdSetDiscardRectangleEXT :: CString
  
  pattern VkCmdSetDiscardRectangleEXT <-
          (is_VkCmdSetDiscardRectangleEXT -> True)
    where
      VkCmdSetDiscardRectangleEXT = _VkCmdSetDiscardRectangleEXT
  
  {-# INLINE _VkCmdSetDiscardRectangleEXT #-}
  
  _VkCmdSetDiscardRectangleEXT :: CString
  _VkCmdSetDiscardRectangleEXT
    = Ptr "vkCmdSetDiscardRectangleEXT\NUL"#
  
  {-# INLINE is_VkCmdSetDiscardRectangleEXT #-}
  
  is_VkCmdSetDiscardRectangleEXT :: CString -> Bool
  is_VkCmdSetDiscardRectangleEXT
    = (EQ ==) . cmpCStrings _VkCmdSetDiscardRectangleEXT
  
  type VkCmdSetDiscardRectangleEXT = "vkCmdSetDiscardRectangleEXT"
  
  -- | Queues: 'graphics'.
  --
  --   Renderpass: @both@
  --
  --   > void vkCmdSetDiscardRectangleEXT
  --   >     ( VkCommandBuffer commandBuffer
  --   >     , uint32_t firstDiscardRectangle
  --   >     , uint32_t discardRectangleCount
  --   >     , const VkRect2D* pDiscardRectangles
  --   >     )
  --
  --   <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#vkCmdSetDiscardRectangleEXT vkCmdSetDiscardRectangleEXT registry at www.khronos.org>
  type HS_vkCmdSetDiscardRectangleEXT =
       VkCommandBuffer -- ^ commandBuffer
                       -> Word32 -- ^ firstDiscardRectangle
                                 -> Word32 -- ^ discardRectangleCount
                                           -> Ptr VkRect2D -- ^ pDiscardRectangles
                                                           -> IO ()
  
  type PFN_vkCmdSetDiscardRectangleEXT =
       FunPtr HS_vkCmdSetDiscardRectangleEXT
  
  foreign import ccall unsafe "dynamic"
                 unwrapVkCmdSetDiscardRectangleEXTUnsafe ::
                 PFN_vkCmdSetDiscardRectangleEXT -> HS_vkCmdSetDiscardRectangleEXT
  
  foreign import ccall safe "dynamic"
                 unwrapVkCmdSetDiscardRectangleEXTSafe ::
                 PFN_vkCmdSetDiscardRectangleEXT -> HS_vkCmdSetDiscardRectangleEXT
  
  instance VulkanProc "vkCmdSetDiscardRectangleEXT" where
      type VkProcType "vkCmdSetDiscardRectangleEXT" =
           HS_vkCmdSetDiscardRectangleEXT
      vkProcSymbol = _VkCmdSetDiscardRectangleEXT
  
      {-# INLINE vkProcSymbol #-}
      unwrapVkProcPtrUnsafe = unwrapVkCmdSetDiscardRectangleEXTUnsafe
  
      {-# INLINE unwrapVkProcPtrUnsafe #-}
      unwrapVkProcPtrSafe = unwrapVkCmdSetDiscardRectangleEXTSafe
  
      {-# INLINE unwrapVkProcPtrSafe #-}
  
  pattern VK_EXT_DISCARD_RECTANGLES_SPEC_VERSION :: (Num a, Eq a) =>
          a
  
  pattern VK_EXT_DISCARD_RECTANGLES_SPEC_VERSION = 1
  
  type VK_EXT_DISCARD_RECTANGLES_SPEC_VERSION = 1
  
  pattern VK_EXT_DISCARD_RECTANGLES_EXTENSION_NAME :: CString
  
  pattern VK_EXT_DISCARD_RECTANGLES_EXTENSION_NAME <-
          (is_VK_EXT_DISCARD_RECTANGLES_EXTENSION_NAME -> True)
    where
      VK_EXT_DISCARD_RECTANGLES_EXTENSION_NAME
        = _VK_EXT_DISCARD_RECTANGLES_EXTENSION_NAME
  
  {-# INLINE _VK_EXT_DISCARD_RECTANGLES_EXTENSION_NAME #-}
  
  _VK_EXT_DISCARD_RECTANGLES_EXTENSION_NAME :: CString
  _VK_EXT_DISCARD_RECTANGLES_EXTENSION_NAME
    = Ptr "VK_EXT_discard_rectangles\NUL"#
  
  {-# INLINE is_VK_EXT_DISCARD_RECTANGLES_EXTENSION_NAME #-}
  
  is_VK_EXT_DISCARD_RECTANGLES_EXTENSION_NAME :: CString -> Bool
  is_VK_EXT_DISCARD_RECTANGLES_EXTENSION_NAME
    = (EQ ==) . cmpCStrings _VK_EXT_DISCARD_RECTANGLES_EXTENSION_NAME
  
  type VK_EXT_DISCARD_RECTANGLES_EXTENSION_NAME =
       "VK_EXT_discard_rectangles"
  
  pattern VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DISCARD_RECTANGLE_PROPERTIES_EXT
          :: VkStructureType
  
  pattern VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DISCARD_RECTANGLE_PROPERTIES_EXT
          = VkStructureType 1000099000
  
  pattern VK_STRUCTURE_TYPE_PIPELINE_DISCARD_RECTANGLE_STATE_CREATE_INFO_EXT
          :: VkStructureType
  
  pattern VK_STRUCTURE_TYPE_PIPELINE_DISCARD_RECTANGLE_STATE_CREATE_INFO_EXT
          = VkStructureType 1000099001
  
  pattern VK_DYNAMIC_STATE_DISCARD_RECTANGLE_EXT :: VkDynamicState
  
  pattern VK_DYNAMIC_STATE_DISCARD_RECTANGLE_EXT =
          VkDynamicState 1000099000
  