Changeset 44f23af in opengl-game for vulkan-game.hpp
- Timestamp:
- Feb 25, 2020, 9:29:36 PM (5 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- 0807aeb
- Parents:
- 3b84bb6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vulkan-game.hpp
r3b84bb6 r44f23af 269 269 270 270 if (pipelinesCreated) { 271 vkDeviceWaitIdle(device); 272 vkFreeCommandBuffers(device, commandPool, static_cast<uint32_t>(commandBuffers.size()), commandBuffers.data()); 273 274 // TODO: The pipeline recreation only has to be done once per frame where at least 275 // one SSBO is resized. 276 // Refactor the logic to check for any resized SSBOs after all objects for the frame 277 // are created and then recreate each of the corresponding pipelines only once per frame 271 278 if (storageBufferResized) { 279 pipeline.createPipeline(pipeline.vertShaderFile, pipeline.fragShaderFile); 280 pipeline.createDescriptorPool(swapChainImages); 281 pipeline.createDescriptorSets(swapChainImages); 272 282 } 273 283
Note:
See TracChangeset
for help on using the changeset viewer.