Fix validation layer warning on minImageCount of 2. (#1634)

This commit is contained in:
Andreas Süßenbach
2023-08-07 12:00:11 +02:00
committed by GitHub
parent 3d27c1736a
commit 4bc9d80d82
4 changed files with 5 additions and 5 deletions

View File

@@ -833,7 +833,7 @@ namespace vk
vk::PresentModeKHR presentMode = vk::su::pickPresentMode( physicalDevice.getSurfacePresentModesKHR( surface ) );
vk::SwapchainCreateInfoKHR swapChainCreateInfo( {},
surface,
surfaceCapabilities.minImageCount,
vk::su::clamp( 3u, surfaceCapabilities.minImageCount, surfaceCapabilities.maxImageCount ),
colorFormat,
surfaceFormat.colorSpace,
swapchainExtent,