Changeset 58453c3 in opengl-game for sdl-game.hpp


Ignore:
Timestamp:
May 20, 2021, 3:50:12 PM (3 years ago)
Author:
Dmitry Portnoy <dportnoy@…>
Branches:
feature/imgui-sdl
Children:
567fa88
Parents:
c163d81
git-author:
Dmitry Portnoy <dportnoy@…> (05/20/21 15:48:15)
git-committer:
Dmitry Portnoy <dportnoy@…> (05/20/21 15:50:12)
Message:

Remove the swapChainImages parameter from the GraphicsPipeline_Vulkan constructor and modify createDescriptorPool(), createDescriptorSets(), and updateDescriptorInfo() to accept a size paramter instead of accepting a vector of swap chain images and getting the size from that

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sdl-game.hpp

    rc163d81 r58453c3  
    292292                           BufferSet& set);
    293293
    294       // TODO: See if it makes sense to rename this to resizeBufferSet() and use it to resize other types of buffers as well
    295       // TODO: Remove the need for templating, which is only there so a GraphicsPupeline_Vulkan can be passed in
    296294      template<class VertexType, class SSBOType>
    297295      void resizeBufferSet(BufferSet& set, VulkanBuffer<SSBOType>& buffer,
     
    378376   // Assume the SSBO is always the 2nd binding
    379377   // TODO: Figure out a way to make this more flexible
    380    pipeline.updateDescriptorInfo(1, &set.infoSet, swapChainImages);
     378   pipeline.updateDescriptorInfo(1, &set.infoSet, swapChainImages.size());
    381379}
    382380
Note: See TracChangeset for help on using the changeset viewer.