mirror of
https://github.com/status-im/Vulkan-Docs.git
synced 2025-01-21 03:40:21 +00:00
56e0289318
* Update release number to 97. Public Issues: * Add a special case to the <<renderpass-compatibility, Render Pass Compatibility>> rules allowing single-subpass renderpasses to be compatible even if they have different resolve attachment references (public issue 835). * Fix the miss shader binding table record address rule in the <<shader-binding-table-indexing-rules, Miss Shaders>> section to index by code:missIndex, not code:sbtOffset (public issue 875). Internal Issues: * Add a missing anchor to the elink:VkSamplerCreateFlagBits language (internal issue 1483). * Add missing implicit valid usage include for slink:VkHdrMetadataEXT and corresponding `noautovalidity` attributes in `vk.xml` for the externally-defined metadata properties (internal issue 1514). * Remove restrictions on the `mask` parameter of SPIR-V's code:OpGroupNonUniformXor in the <<spirvenv-module-validation, Validation Rules within a Module>> appendix (internal merge request 2971). * Restore `noautovalidity` attribute for slink:VkPipelineViewportWScalingStateCreateInfoNV::pname:pViewportWScalings in `vk.xml` (internal merge request 2975). * Update copyright dates on Khronos-copyrighted files to 2019 (internal merge request 2980). New Extensions: * `VK_KHR_depth_stencil_resolve` * `VK_EXT_buffer_device_address` * `VK_EXT_memory_budget` * `VK_EXT_memory_priority` * `VK_EXT_validation_features`
44 lines
2.1 KiB
Plaintext
44 lines
2.1 KiB
Plaintext
// Copyright (c) 2014-2019 Khronos Group. This work is licensed under a
|
|
// Creative Commons Attribution 4.0 International License; see
|
|
// http://creativecommons.org/licenses/by/4.0/
|
|
|
|
[[create_shared_swapchains,create_shared_swapchains]]
|
|
|
|
[open,refpage='vkCreateSharedSwapchainsKHR',desc='Create multiple swapchains that share presentable images',type='protos']
|
|
--
|
|
|
|
When the `VK_KHR_display_swapchain` extension is enabled, multiple
|
|
swapchains that share presentable images are created by calling:
|
|
|
|
include::../../api/protos/vkCreateSharedSwapchainsKHR.txt[]
|
|
|
|
* pname:device is the device to create the swapchains for.
|
|
* pname:swapchainCount is the number of swapchains to create.
|
|
* pname:pCreateInfos is a pointer to an array of
|
|
slink:VkSwapchainCreateInfoKHR structures specifying the parameters of
|
|
the created swapchains.
|
|
* pname:pAllocator is the allocator used for host memory allocated for the
|
|
swapchain objects when there is no more specific allocator available
|
|
(see <<memory-allocation,Memory Allocation>>).
|
|
* pname:pSwapchains is a pointer to an array of slink:VkSwapchainKHR
|
|
handles in which the created swapchain objects will be returned.
|
|
|
|
fname:vkCreateSharedSwapchainsKHR is similar to flink:vkCreateSwapchainKHR,
|
|
except that it takes an array of slink: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
|
|
ename: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 ename: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.
|
|
|
|
include::../../validity/protos/vkCreateSharedSwapchainsKHR.txt[]
|
|
--
|