Changeset 0ae182f in opengl-game for vulkan-game.cpp
- Timestamp:
- Nov 11, 2019, 2:19:32 AM (5 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- 5a23277
- Parents:
- 1f25a71
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vulkan-game.cpp
r1f25a71 r0ae182f 74 74 } 75 75 76 // TODO: Make some more init ifunctions, or call this initUI if the76 // TODO: Make some more init functions, or call this initUI if the 77 77 // amount of things initialized here keeps growing 78 78 bool VulkanGame::initWindow(int width, int height, unsigned char guiFlags) { … … 252 252 graphicsPipelines.back().createDescriptorPool(swapChainImages); 253 253 graphicsPipelines.back().createDescriptorSets(swapChainImages); 254 255 // TODO: Creating the descriptor pool and descriptor sets might need to be redone when the256 // swap chain is recreated257 254 258 255 cout << "Created " << graphicsPipelines.size() << " graphics pipelines" << endl; … … 958 955 vkDeviceWaitIdle(device); 959 956 960 //cleanupSwapChain(); 957 cleanupSwapChain(); 958 959 createSwapChain(); 960 createImageViews(); 961 createRenderPass(); 962 963 VulkanUtils::createDepthImage(device, physicalDevice, commandPool, findDepthFormat(), swapChainExtent, 964 depthImage, graphicsQueue); 965 createFramebuffers(); 966 createUniformBuffers(); 967 968 graphicsPipelines[0].updateRenderPass(renderPass); 969 graphicsPipelines[0].createPipeline("shaders/scene-vert.spv", "shaders/scene-frag.spv"); 970 graphicsPipelines[0].createDescriptorPool(swapChainImages); 971 graphicsPipelines[0].createDescriptorSets(swapChainImages); 972 973 graphicsPipelines[1].updateRenderPass(renderPass); 974 graphicsPipelines[1].createPipeline("shaders/overlay-vert.spv", "shaders/overlay-frag.spv"); 975 graphicsPipelines[1].createDescriptorPool(swapChainImages); 976 graphicsPipelines[1].createDescriptorSets(swapChainImages); 977 978 createCommandBuffers(); 961 979 } 962 980
Note:
See TracChangeset
for help on using the changeset viewer.