MCPcopy Create free account
hub / github.com/OpenNFS/OpenNFS / recreateSwapChain

Method recreateSwapChain

src/Renderer/vkRenderer.cpp:161–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161void vkRenderer::recreateSwapChain() {
162 int width, height;
163 glfwGetWindowSize(window, &width, &height);
164 if (width == 0 || height == 0) return;
165
166 vkDeviceWaitIdle(device);
167
168 cleanupSwapChain();
169
170 createSwapChain();
171 createImageViews();
172 createRenderPass();
173 createGraphicsPipeline();
174 createFramebuffers();
175 createCommandBuffers();
176}
177
178void vkRenderer::createInstance() {
179 if (enableValidationLayers && !checkValidationLayerSupport()) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected