mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Fix validation layer warning on minImageCount of 2. (#1634)
This commit is contained in:
parent
3d27c1736a
commit
4bc9d80d82
@ -120,7 +120,7 @@ int main( int /*argc*/, char ** /*argv*/ )
|
|||||||
|
|
||||||
vk::SwapchainCreateInfoKHR swapChainCreateInfo( vk::SwapchainCreateFlagsKHR(),
|
vk::SwapchainCreateInfoKHR swapChainCreateInfo( vk::SwapchainCreateFlagsKHR(),
|
||||||
*surface,
|
*surface,
|
||||||
surfaceCapabilities.minImageCount,
|
vk::su::clamp( 3u, surfaceCapabilities.minImageCount, surfaceCapabilities.maxImageCount ),
|
||||||
format,
|
format,
|
||||||
vk::ColorSpaceKHR::eSrgbNonlinear,
|
vk::ColorSpaceKHR::eSrgbNonlinear,
|
||||||
swapchainExtent,
|
swapchainExtent,
|
||||||
|
@ -367,7 +367,7 @@ namespace vk
|
|||||||
vk::PresentModeKHR presentMode = vk::su::pickPresentMode( physicalDevice.getSurfacePresentModesKHR( *surface ) );
|
vk::PresentModeKHR presentMode = vk::su::pickPresentMode( physicalDevice.getSurfacePresentModesKHR( *surface ) );
|
||||||
vk::SwapchainCreateInfoKHR swapChainCreateInfo( {},
|
vk::SwapchainCreateInfoKHR swapChainCreateInfo( {},
|
||||||
*surface,
|
*surface,
|
||||||
surfaceCapabilities.minImageCount,
|
vk::su::clamp( 3u, surfaceCapabilities.minImageCount, surfaceCapabilities.maxImageCount ),
|
||||||
colorFormat,
|
colorFormat,
|
||||||
surfaceFormat.colorSpace,
|
surfaceFormat.colorSpace,
|
||||||
swapchainExtent,
|
swapchainExtent,
|
||||||
|
@ -123,7 +123,7 @@ int main( int /*argc*/, char ** /*argv*/ )
|
|||||||
|
|
||||||
vk::SwapchainCreateInfoKHR swapChainCreateInfo( vk::SwapchainCreateFlagsKHR(),
|
vk::SwapchainCreateInfoKHR swapChainCreateInfo( vk::SwapchainCreateFlagsKHR(),
|
||||||
surface,
|
surface,
|
||||||
surfaceCapabilities.minImageCount,
|
vk::su::clamp( 3u, surfaceCapabilities.minImageCount, surfaceCapabilities.maxImageCount ),
|
||||||
format,
|
format,
|
||||||
vk::ColorSpaceKHR::eSrgbNonlinear,
|
vk::ColorSpaceKHR::eSrgbNonlinear,
|
||||||
swapchainExtent,
|
swapchainExtent,
|
||||||
|
@ -833,7 +833,7 @@ namespace vk
|
|||||||
vk::PresentModeKHR presentMode = vk::su::pickPresentMode( physicalDevice.getSurfacePresentModesKHR( surface ) );
|
vk::PresentModeKHR presentMode = vk::su::pickPresentMode( physicalDevice.getSurfacePresentModesKHR( surface ) );
|
||||||
vk::SwapchainCreateInfoKHR swapChainCreateInfo( {},
|
vk::SwapchainCreateInfoKHR swapChainCreateInfo( {},
|
||||||
surface,
|
surface,
|
||||||
surfaceCapabilities.minImageCount,
|
vk::su::clamp( 3u, surfaceCapabilities.minImageCount, surfaceCapabilities.maxImageCount ),
|
||||||
colorFormat,
|
colorFormat,
|
||||||
surfaceFormat.colorSpace,
|
surfaceFormat.colorSpace,
|
||||||
swapchainExtent,
|
swapchainExtent,
|
||||||
|
Loading…
Reference in New Issue
Block a user