mirror of
https://github.com/PancakeTAS/lsfg-vk.git
synced 2025-10-30 07:01:10 +00:00
increase swapchain image count
This commit is contained in:
parent
260026beed
commit
f62c2578da
1 changed files with 5 additions and 1 deletions
|
|
@ -120,7 +120,11 @@ namespace {
|
|||
const VkSwapchainCreateInfoKHR* pCreateInfo,
|
||||
const VkAllocationCallbacks* pAllocator,
|
||||
VkSwapchainKHR* pSwapchain) {
|
||||
auto res = vkCreateSwapchainKHR(device, pCreateInfo, pAllocator, pSwapchain);
|
||||
VkSwapchainCreateInfoKHR createInfo = *pCreateInfo;
|
||||
createInfo.minImageCount += 2;
|
||||
createInfo.imageUsage |= VK_IMAGE_USAGE_TRANSFER_DST_BIT;
|
||||
createInfo.imageUsage |= VK_IMAGE_USAGE_TRANSFER_SRC_BIT;
|
||||
auto res = vkCreateSwapchainKHR(device, &createInfo, pAllocator, pSwapchain);
|
||||
|
||||
// add the swapchain to the application
|
||||
if (!application.has_value()) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue