Changeset 8aa4888 in opengl-game for sdl-game.hpp


Ignore:
Timestamp:
Jun 8, 2021, 3:21:53 PM (4 years ago)
Author:
Dmitry Portnoy <dportnoy@…>
Branches:
feature/imgui-sdl
Children:
8dcbf62
Parents:
c074f81
Message:

Add buffer usages and memory properties to BufferSet and save them (to help with future recreation) in createBufferSet()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sdl-game.hpp

    rc074f81 r8aa4888  
    2020
    2121#include "consts.hpp"
     22#include "game-gui-sdl.hpp"
    2223#include "vulkan-utils.hpp"
     24#include "graphics-pipeline_vulkan.hpp"
    2325#include "vulkan-buffer.hpp"
    24 #include "graphics-pipeline_vulkan.hpp"
    25 #include "game-gui-sdl.hpp"
    2626
    2727using namespace glm;
     
    5959   unsigned int objIndex;
    6060};
     61
     62// Currently using these as the dynamic UBO types as well
     63// TODO: Rename them to something more general
    6164
    6265struct SSBO_ModelObject {
     
    8386   vector<VkDeviceMemory> memory;
    8487   vector<VkDescriptorBufferInfo> infoSet;
     88   VkBufferUsageFlags usages;
     89   VkMemoryPropertyFlags properties;
    8590};
    8691
     
    289294      // TODO: Maybe move these to a different class, possibly VulkanBuffer or some new related class
    290295
    291       void createBufferSet(VkDeviceSize bufferSize, VkBufferUsageFlags flags, VkMemoryPropertyFlags properties,
     296      void createBufferSet(VkDeviceSize bufferSize, VkBufferUsageFlags usages, VkMemoryPropertyFlags properties,
    292297                           BufferSet& set);
    293298
Note: See TracChangeset for help on using the changeset viewer.