Changeset 44f23af in opengl-game for vulkan-game.hpp


Ignore:
Timestamp:
Feb 25, 2020, 9:29:36 PM (5 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
0807aeb
Parents:
3b84bb6
Message:

In VulkanGame, add code to resize the storage buffer and update the right descriptor info when the storage buffer becomes full

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vulkan-game.hpp

    r3b84bb6 r44f23af  
    269269
    270270   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
    271278      if (storageBufferResized) {
     279         pipeline.createPipeline(pipeline.vertShaderFile, pipeline.fragShaderFile);
     280         pipeline.createDescriptorPool(swapChainImages);
     281         pipeline.createDescriptorSets(swapChainImages);
    272282      }
    273283
Note: See TracChangeset for help on using the changeset viewer.