Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- pattern VK_ERROR_INCOMPATIBLE_DISPLAY_KHR :: VkResult
- pattern VK_STRUCTURE_TYPE_DISPLAY_PRESENT_INFO_KHR :: VkStructureType
- pattern VK_KHR_DISPLAY_SWAPCHAIN_SPEC_VERSION :: Integral a => a
- pattern VK_KHR_DISPLAY_SWAPCHAIN_EXTENSION_NAME :: (Eq a, IsString a) => a
- vkCreateSharedSwapchainsKHR :: ("device" ::: VkDevice) -> ("swapchainCount" ::: Word32) -> ("pCreateInfos" ::: Ptr VkSwapchainCreateInfoKHR) -> ("pAllocator" ::: Ptr VkAllocationCallbacks) -> ("pSwapchains" ::: Ptr VkSwapchainKHR) -> IO VkResult
- data VkDisplayPresentInfoKHR = VkDisplayPresentInfoKHR {
- vkSType :: VkStructureType
- vkPNext :: Ptr ()
- vkSrcRect :: VkRect2D
- vkDstRect :: VkRect2D
- vkPersistent :: VkBool32
Documentation
pattern VK_ERROR_INCOMPATIBLE_DISPLAY_KHR :: VkResult Source #
pattern VK_KHR_DISPLAY_SWAPCHAIN_SPEC_VERSION :: Integral a => a Source #
pattern VK_KHR_DISPLAY_SWAPCHAIN_EXTENSION_NAME :: (Eq a, IsString a) => a Source #
vkCreateSharedSwapchainsKHR :: ("device" ::: VkDevice) -> ("swapchainCount" ::: Word32) -> ("pCreateInfos" ::: Ptr VkSwapchainCreateInfoKHR) -> ("pAllocator" ::: Ptr VkAllocationCallbacks) -> ("pSwapchains" ::: Ptr VkSwapchainKHR) -> IO VkResult Source #
vkCreateSharedSwapchainsKHR - Create multiple swapchains that share presentable images
Parameters
device
is the device to create the swapchains for.
swapchainCount
is the number of swapchains to create.pCreateInfos
is a pointer to an array ofVkSwapchainCreateInfoKHR
structures specifying the parameters of the created swapchains.pAllocator
is the allocator used for host memory allocated for the swapchain objects when there is no more specific allocator available (see Memory Allocation).pSwapchains
is a pointer to an array ofVkSwapchainKHR
handles in which the created swapchain objects will be returned.
Description
vkCreateSharedSwapchains
is similar to
vkCreateSwapchainKHR
,
except that it takes an array of VkSwapchainCreateInfoKHR
structures,
and returns an array of swapchain objects.
The swapchain creation parameters that affect the properties and number
of presentable images must match between all the swapchains. If the
displays used by any of the swapchains do not use the same presentable
image layout or are incompatible in a way that prevents sharing images,
swapchain creation will fail with the result code
VK_ERROR_INCOMPATIBLE_DISPLAY_KHR
. If any error occurs, no swapchains
will be created. Images presented to multiple swapchains must be
re-acquired from all of them before transitioning away from
VK_IMAGE_LAYOUT_PRESENT_SRC_KHR
. After destroying one or more of the
swapchains, the remaining swapchains and the presentable images can
continue to be used.
Valid Usage (Implicit)
device
must be a validVkDevice
handle
pCreateInfos
must be a valid pointer to an array ofswapchainCount
validVkSwapchainCreateInfoKHR
structures- If
pAllocator
is notNULL
,pAllocator
must be a valid pointer to a validVkAllocationCallbacks
structure pSwapchains
must be a valid pointer to an array ofswapchainCount
VkSwapchainKHR
handlesswapchainCount
must be greater than0
Host Synchronization
- Host access to
pCreateInfos
[].surface must be externally synchronized
- Host access to
pCreateInfos
[].oldSwapchain must be externally synchronized
Return Codes
[Success]
- VK_SUCCESS
[Failure]
- VK_ERROR_OUT_OF_HOST_MEMORY
VK_ERROR_OUT_OF_DEVICE_MEMORY
VK_ERROR_INCOMPATIBLE_DISPLAY_KHR
VK_ERROR_DEVICE_LOST
VK_ERROR_SURFACE_LOST_KHR
See Also
VkAllocationCallbacks
,
VkDevice
,
VkSwapchainCreateInfoKHR
,
VkSwapchainKHR
data VkDisplayPresentInfoKHR Source #
VkDisplayPresentInfoKHR - Structure describing parameters of a queue presentation to a swapchain
Description
If the extent of the srcRect
and dstRect
are not equal, the
presented pixels will be scaled accordingly.
Valid Usage
srcRect
must specify a rectangular region that is a subset of the image being presented
dstRect
must specify a rectangular region that is a subset of thevisibleRegion
parameter of the display mode the swapchain being presented uses- If the
persistentContent
member of theVkDisplayPropertiesKHR
structure returned byvkGetPhysicalDeviceDisplayPropertiesKHR
for the display the present operation targets thenpersistent
must beVK_FALSE
Valid Usage (Implicit)
sType
must beVK_STRUCTURE_TYPE_DISPLAY_PRESENT_INFO_KHR
See Also
VkBool32
, VkRect2D
,
VkStructureType
VkDisplayPresentInfoKHR | |
|
Instances
Eq VkDisplayPresentInfoKHR Source # | |
Show VkDisplayPresentInfoKHR Source # | |
showsPrec :: Int -> VkDisplayPresentInfoKHR -> ShowS # show :: VkDisplayPresentInfoKHR -> String # showList :: [VkDisplayPresentInfoKHR] -> ShowS # | |
Storable VkDisplayPresentInfoKHR Source # | |
sizeOf :: VkDisplayPresentInfoKHR -> Int # alignment :: VkDisplayPresentInfoKHR -> Int # peekElemOff :: Ptr VkDisplayPresentInfoKHR -> Int -> IO VkDisplayPresentInfoKHR # pokeElemOff :: Ptr VkDisplayPresentInfoKHR -> Int -> VkDisplayPresentInfoKHR -> IO () # peekByteOff :: Ptr b -> Int -> IO VkDisplayPresentInfoKHR # pokeByteOff :: Ptr b -> Int -> VkDisplayPresentInfoKHR -> IO () # peek :: Ptr VkDisplayPresentInfoKHR -> IO VkDisplayPresentInfoKHR # poke :: Ptr VkDisplayPresentInfoKHR -> VkDisplayPresentInfoKHR -> IO () # |