| 1862 | } |
| 1863 | |
| 1864 | void 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 | |
| 1890 | void VulkanBaseApp::mainLoop() |
| 1891 | { |
nothing calls this directly
no outgoing calls
no test coverage detected