You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upon calling vkCreateSwapchainKHR with an oldSwapchain that is not VK_NULL_HANDLE, oldSwapchain is retired — even if creation of the new swapchain fails. The new swapchain is created in the non-retired state whether or not oldSwapchain is VK_NULL_HANDLE.
VK_CHECK(vkCreateSwapchainKHR(context.device, &info, nullptr, &context.swapchain)); retires old_swapchain and VK_CHECK(vkGetSwapchainImagesKHR(context.device, old_swapchain, &image_count, nullptr)); references it.
hello_triangle.cpp
references a retired swapchain resulting in a warning on Android:Vulkan spec states that
VK_CHECK(vkCreateSwapchainKHR(context.device, &info, nullptr, &context.swapchain));
retiresold_swapchain
andVK_CHECK(vkGetSwapchainImagesKHR(context.device, old_swapchain, &image_count, nullptr));
references it.should precede
VK_CHECK(vkCreateSwapchainKHR(context.device, &info, nullptr, &context.swapchain));
The text was updated successfully, but these errors were encountered: