Changeset 58453c3 in opengl-game for vulkan-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
  • vulkan-game.hpp

    rc163d81 r58453c3  
    435435                           BufferSet& set);
    436436
    437       // TODO: See if it makes sense to rename this to resizeBufferSet() and use it to resize other types of buffers as well
    438       // TODO: Remove the need for templating, which is only there so a GraphicsPupeline_Vulkan can be passed in
    439437      template<class VertexType, class SSBOType>
    440438      void resizeBufferSet(BufferSet& set, VulkanBuffer<SSBOType>& buffer,
     
    541539   // Assume the SSBO is always the 2nd binding
    542540   // TODO: Figure out a way to make this more flexible
    543    pipeline.updateDescriptorInfo(1, &set.infoSet, swapChainImages);
     541   pipeline.updateDescriptorInfo(1, &set.infoSet, swapChainImages.size());
    544542}
    545543
Note: See TracChangeset for help on using the changeset viewer.