MCPcopy Create free account
hub / github.com/NVIDIA/cuda-samples / recreateSwapChain

Method recreateSwapChain

cpp/5_Domain_Specific/simpleVulkan/VulkanBaseApp.cpp:1864–1888  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1862}
1863
1864void VulkanBaseApp::recreateSwapChain()
1865{
1866 int width, height;
1867
1868 glfwGetFramebufferSize(m_window, &width, &height);
1869 while (width == 0 || height == 0) {
1870 glfwWaitEvents();
1871 glfwGetFramebufferSize(m_window, &width, &height);
1872 }
1873
1874 vkDeviceWaitIdle(m_device);
1875
1876 cleanupSwapChain();
1877
1878 createSwapChain();
1879 createImageViews();
1880 createRenderPass();
1881 createGraphicsPipeline();
1882 createDepthResources();
1883 createFramebuffers();
1884 createUniformBuffers();
1885 createDescriptorPool();
1886 createDescriptorSets();
1887 createCommandBuffers();
1888}
1889
1890void VulkanBaseApp::mainLoop()
1891{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected