{-# language CPP #-}
-- | = Name
--
-- VK_KHR_get_memory_requirements2 - device extension
--
-- == VK_KHR_get_memory_requirements2
--
-- [__Name String__]
--     @VK_KHR_get_memory_requirements2@
--
-- [__Extension Type__]
--     Device extension
--
-- [__Registered Extension Number__]
--     147
--
-- [__Revision__]
--     1
--
-- [__Ratification Status__]
--     Ratified
--
-- [__Extension and Version Dependencies__; __Deprecation State__]
--
--     -   /Promoted/ to
--         <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#versions-1.1-promotions Vulkan 1.1>
--
-- [__Contact__]
--
--     -   Faith Ekstrand
--         <https://github.com/KhronosGroup/Vulkan-Docs/issues/new?body=[VK_KHR_get_memory_requirements2] @gfxstrand%0A*Here describe the issue or question you have about the VK_KHR_get_memory_requirements2 extension* >
--
-- == Other Extension Metadata
--
-- [__Last Modified Date__]
--     2017-09-05
--
-- [__IP Status__]
--     No known IP claims.
--
-- [__Interactions and External Dependencies__]
--
--     -   Promoted to Vulkan 1.1 Core
--
-- [__Contributors__]
--
--     -   Faith Ekstrand, Intel
--
--     -   Jeff Bolz, NVIDIA
--
--     -   Jesse Hall, Google
--
-- == Description
--
-- This extension provides new queries for memory requirements of images
-- and buffers that can be easily extended by other extensions, without
-- introducing any further entry points. The Vulkan 1.0
-- 'Vulkan.Core10.MemoryManagement.MemoryRequirements' and
-- 'Vulkan.Core10.SparseResourceMemoryManagement.SparseImageMemoryRequirements'
-- structures do not include @sType@ and @pNext@ members. This extension
-- wraps them in new structures with these members, so an application can
-- query a chain of memory requirements structures by constructing the
-- chain and letting the implementation fill them in. A new command is
-- added for each @vkGet*MemoryRequrements@ command in core Vulkan 1.0.
--
-- == Promotion to Vulkan 1.1
--
-- All functionality in this extension is included in core Vulkan 1.1, with
-- the KHR suffix omitted. The original type, enum and command names are
-- still available as aliases of the core functionality.
--
-- == New Commands
--
-- -   'getBufferMemoryRequirements2KHR'
--
-- -   'getImageMemoryRequirements2KHR'
--
-- -   'getImageSparseMemoryRequirements2KHR'
--
-- == New Structures
--
-- -   'BufferMemoryRequirementsInfo2KHR'
--
-- -   'ImageMemoryRequirementsInfo2KHR'
--
-- -   'ImageSparseMemoryRequirementsInfo2KHR'
--
-- -   'MemoryRequirements2KHR'
--
-- -   'SparseImageMemoryRequirements2KHR'
--
-- == New Enum Constants
--
-- -   'KHR_GET_MEMORY_REQUIREMENTS_2_EXTENSION_NAME'
--
-- -   'KHR_GET_MEMORY_REQUIREMENTS_2_SPEC_VERSION'
--
-- -   Extending 'Vulkan.Core10.Enums.StructureType.StructureType':
--
--     -   'STRUCTURE_TYPE_BUFFER_MEMORY_REQUIREMENTS_INFO_2_KHR'
--
--     -   'STRUCTURE_TYPE_IMAGE_MEMORY_REQUIREMENTS_INFO_2_KHR'
--
--     -   'STRUCTURE_TYPE_IMAGE_SPARSE_MEMORY_REQUIREMENTS_INFO_2_KHR'
--
--     -   'STRUCTURE_TYPE_MEMORY_REQUIREMENTS_2_KHR'
--
--     -   'STRUCTURE_TYPE_SPARSE_IMAGE_MEMORY_REQUIREMENTS_2_KHR'
--
-- == Version History
--
-- -   Revision 1, 2017-03-23 (Faith Ekstrand)
--
--     -   Internal revisions
--
-- == See Also
--
-- 'BufferMemoryRequirementsInfo2KHR', 'ImageMemoryRequirementsInfo2KHR',
-- 'ImageSparseMemoryRequirementsInfo2KHR', 'MemoryRequirements2KHR',
-- 'SparseImageMemoryRequirements2KHR', 'getBufferMemoryRequirements2KHR',
-- 'getImageMemoryRequirements2KHR', 'getImageSparseMemoryRequirements2KHR'
--
-- == Document Notes
--
-- For more information, see the
-- <https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#VK_KHR_get_memory_requirements2 Vulkan Specification>
--
-- This page is a generated document. Fixes and changes should be made to
-- the generator scripts, not directly.
module Vulkan.Extensions.VK_KHR_get_memory_requirements2  ( pattern STRUCTURE_TYPE_BUFFER_MEMORY_REQUIREMENTS_INFO_2_KHR
                                                          , pattern STRUCTURE_TYPE_IMAGE_MEMORY_REQUIREMENTS_INFO_2_KHR
                                                          , pattern STRUCTURE_TYPE_IMAGE_SPARSE_MEMORY_REQUIREMENTS_INFO_2_KHR
                                                          , pattern STRUCTURE_TYPE_MEMORY_REQUIREMENTS_2_KHR
                                                          , pattern STRUCTURE_TYPE_SPARSE_IMAGE_MEMORY_REQUIREMENTS_2_KHR
                                                          , getBufferMemoryRequirements2KHR
                                                          , getImageMemoryRequirements2KHR
                                                          , getImageSparseMemoryRequirements2KHR
                                                          , BufferMemoryRequirementsInfo2KHR
                                                          , ImageMemoryRequirementsInfo2KHR
                                                          , ImageSparseMemoryRequirementsInfo2KHR
                                                          , MemoryRequirements2KHR
                                                          , SparseImageMemoryRequirements2KHR
                                                          , KHR_GET_MEMORY_REQUIREMENTS_2_SPEC_VERSION
                                                          , pattern KHR_GET_MEMORY_REQUIREMENTS_2_SPEC_VERSION
                                                          , KHR_GET_MEMORY_REQUIREMENTS_2_EXTENSION_NAME
                                                          , pattern KHR_GET_MEMORY_REQUIREMENTS_2_EXTENSION_NAME
                                                          ) where

import Data.String (IsString)
import Vulkan.Core11.Promoted_From_VK_KHR_get_memory_requirements2 (getBufferMemoryRequirements2)
import Vulkan.Core11.Promoted_From_VK_KHR_get_memory_requirements2 (getImageMemoryRequirements2)
import Vulkan.Core11.Promoted_From_VK_KHR_get_memory_requirements2 (getImageSparseMemoryRequirements2)
import Vulkan.Core11.Promoted_From_VK_KHR_get_memory_requirements2 (BufferMemoryRequirementsInfo2)
import Vulkan.Core11.Promoted_From_VK_KHR_get_memory_requirements2 (ImageMemoryRequirementsInfo2)
import Vulkan.Core11.Promoted_From_VK_KHR_get_memory_requirements2 (ImageSparseMemoryRequirementsInfo2)
import Vulkan.Core11.Promoted_From_VK_KHR_get_memory_requirements2 (MemoryRequirements2)
import Vulkan.Core11.Promoted_From_VK_KHR_get_memory_requirements2 (SparseImageMemoryRequirements2)
import Vulkan.Core10.Enums.StructureType (StructureType(STRUCTURE_TYPE_BUFFER_MEMORY_REQUIREMENTS_INFO_2))
import Vulkan.Core10.Enums.StructureType (StructureType(STRUCTURE_TYPE_IMAGE_MEMORY_REQUIREMENTS_INFO_2))
import Vulkan.Core10.Enums.StructureType (StructureType(STRUCTURE_TYPE_IMAGE_SPARSE_MEMORY_REQUIREMENTS_INFO_2))
import Vulkan.Core10.Enums.StructureType (StructureType(STRUCTURE_TYPE_MEMORY_REQUIREMENTS_2))
import Vulkan.Core10.Enums.StructureType (StructureType(STRUCTURE_TYPE_SPARSE_IMAGE_MEMORY_REQUIREMENTS_2))
-- No documentation found for TopLevel "VK_STRUCTURE_TYPE_BUFFER_MEMORY_REQUIREMENTS_INFO_2_KHR"
pattern $bSTRUCTURE_TYPE_BUFFER_MEMORY_REQUIREMENTS_INFO_2_KHR :: StructureType
$mSTRUCTURE_TYPE_BUFFER_MEMORY_REQUIREMENTS_INFO_2_KHR :: forall {r}. StructureType -> ((# #) -> r) -> ((# #) -> r) -> r
STRUCTURE_TYPE_BUFFER_MEMORY_REQUIREMENTS_INFO_2_KHR = STRUCTURE_TYPE_BUFFER_MEMORY_REQUIREMENTS_INFO_2


-- No documentation found for TopLevel "VK_STRUCTURE_TYPE_IMAGE_MEMORY_REQUIREMENTS_INFO_2_KHR"
pattern $bSTRUCTURE_TYPE_IMAGE_MEMORY_REQUIREMENTS_INFO_2_KHR :: StructureType
$mSTRUCTURE_TYPE_IMAGE_MEMORY_REQUIREMENTS_INFO_2_KHR :: forall {r}. StructureType -> ((# #) -> r) -> ((# #) -> r) -> r
STRUCTURE_TYPE_IMAGE_MEMORY_REQUIREMENTS_INFO_2_KHR = STRUCTURE_TYPE_IMAGE_MEMORY_REQUIREMENTS_INFO_2


-- No documentation found for TopLevel "VK_STRUCTURE_TYPE_IMAGE_SPARSE_MEMORY_REQUIREMENTS_INFO_2_KHR"
pattern $bSTRUCTURE_TYPE_IMAGE_SPARSE_MEMORY_REQUIREMENTS_INFO_2_KHR :: StructureType
$mSTRUCTURE_TYPE_IMAGE_SPARSE_MEMORY_REQUIREMENTS_INFO_2_KHR :: forall {r}. StructureType -> ((# #) -> r) -> ((# #) -> r) -> r
STRUCTURE_TYPE_IMAGE_SPARSE_MEMORY_REQUIREMENTS_INFO_2_KHR = STRUCTURE_TYPE_IMAGE_SPARSE_MEMORY_REQUIREMENTS_INFO_2


-- No documentation found for TopLevel "VK_STRUCTURE_TYPE_MEMORY_REQUIREMENTS_2_KHR"
pattern $bSTRUCTURE_TYPE_MEMORY_REQUIREMENTS_2_KHR :: StructureType
$mSTRUCTURE_TYPE_MEMORY_REQUIREMENTS_2_KHR :: forall {r}. StructureType -> ((# #) -> r) -> ((# #) -> r) -> r
STRUCTURE_TYPE_MEMORY_REQUIREMENTS_2_KHR = STRUCTURE_TYPE_MEMORY_REQUIREMENTS_2


-- No documentation found for TopLevel "VK_STRUCTURE_TYPE_SPARSE_IMAGE_MEMORY_REQUIREMENTS_2_KHR"
pattern $bSTRUCTURE_TYPE_SPARSE_IMAGE_MEMORY_REQUIREMENTS_2_KHR :: StructureType
$mSTRUCTURE_TYPE_SPARSE_IMAGE_MEMORY_REQUIREMENTS_2_KHR :: forall {r}. StructureType -> ((# #) -> r) -> ((# #) -> r) -> r
STRUCTURE_TYPE_SPARSE_IMAGE_MEMORY_REQUIREMENTS_2_KHR = STRUCTURE_TYPE_SPARSE_IMAGE_MEMORY_REQUIREMENTS_2


-- No documentation found for TopLevel "vkGetBufferMemoryRequirements2KHR"
getBufferMemoryRequirements2KHR :: Device
-> BufferMemoryRequirementsInfo2 -> io (MemoryRequirements2 a)
getBufferMemoryRequirements2KHR = forall (a :: [*]) (io :: * -> *).
(Extendss MemoryRequirements2 a, PokeChain a, PeekChain a,
 MonadIO io) =>
Device
-> BufferMemoryRequirementsInfo2 -> io (MemoryRequirements2 a)
getBufferMemoryRequirements2


-- No documentation found for TopLevel "vkGetImageMemoryRequirements2KHR"
getImageMemoryRequirements2KHR :: Device
-> ImageMemoryRequirementsInfo2 a -> io (MemoryRequirements2 b)
getImageMemoryRequirements2KHR = forall (a :: [*]) (b :: [*]) (io :: * -> *).
(Extendss ImageMemoryRequirementsInfo2 a, PokeChain a,
 Extendss MemoryRequirements2 b, PokeChain b, PeekChain b,
 MonadIO io) =>
Device
-> ImageMemoryRequirementsInfo2 a -> io (MemoryRequirements2 b)
getImageMemoryRequirements2


-- No documentation found for TopLevel "vkGetImageSparseMemoryRequirements2KHR"
getImageSparseMemoryRequirements2KHR :: Device
-> ImageSparseMemoryRequirementsInfo2
-> io
     ("sparseMemoryRequirements"
      ::: Vector SparseImageMemoryRequirements2)
getImageSparseMemoryRequirements2KHR = forall (io :: * -> *).
MonadIO io =>
Device
-> ImageSparseMemoryRequirementsInfo2
-> io
     ("sparseMemoryRequirements"
      ::: Vector SparseImageMemoryRequirements2)
getImageSparseMemoryRequirements2


-- No documentation found for TopLevel "VkBufferMemoryRequirementsInfo2KHR"
type BufferMemoryRequirementsInfo2KHR = BufferMemoryRequirementsInfo2


-- No documentation found for TopLevel "VkImageMemoryRequirementsInfo2KHR"
type ImageMemoryRequirementsInfo2KHR = ImageMemoryRequirementsInfo2


-- No documentation found for TopLevel "VkImageSparseMemoryRequirementsInfo2KHR"
type ImageSparseMemoryRequirementsInfo2KHR = ImageSparseMemoryRequirementsInfo2


-- No documentation found for TopLevel "VkMemoryRequirements2KHR"
type MemoryRequirements2KHR = MemoryRequirements2


-- No documentation found for TopLevel "VkSparseImageMemoryRequirements2KHR"
type SparseImageMemoryRequirements2KHR = SparseImageMemoryRequirements2


type KHR_GET_MEMORY_REQUIREMENTS_2_SPEC_VERSION = 1

-- No documentation found for TopLevel "VK_KHR_GET_MEMORY_REQUIREMENTS_2_SPEC_VERSION"
pattern KHR_GET_MEMORY_REQUIREMENTS_2_SPEC_VERSION :: forall a . Integral a => a
pattern $bKHR_GET_MEMORY_REQUIREMENTS_2_SPEC_VERSION :: forall a. Integral a => a
$mKHR_GET_MEMORY_REQUIREMENTS_2_SPEC_VERSION :: forall {r} {a}.
Integral a =>
a -> ((# #) -> r) -> ((# #) -> r) -> r
KHR_GET_MEMORY_REQUIREMENTS_2_SPEC_VERSION = 1


type KHR_GET_MEMORY_REQUIREMENTS_2_EXTENSION_NAME = "VK_KHR_get_memory_requirements2"

-- No documentation found for TopLevel "VK_KHR_GET_MEMORY_REQUIREMENTS_2_EXTENSION_NAME"
pattern KHR_GET_MEMORY_REQUIREMENTS_2_EXTENSION_NAME :: forall a . (Eq a, IsString a) => a
pattern $bKHR_GET_MEMORY_REQUIREMENTS_2_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a
$mKHR_GET_MEMORY_REQUIREMENTS_2_EXTENSION_NAME :: forall {r} {a}.
(Eq a, IsString a) =>
a -> ((# #) -> r) -> ((# #) -> r) -> r
KHR_GET_MEMORY_REQUIREMENTS_2_EXTENSION_NAME = "VK_KHR_get_memory_requirements2"