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

    rc074f81 r8aa4888  
    2323#include "consts.hpp"
    2424#include "utils.hpp"
     25#include "game-gui-sdl.hpp"
    2526#include "vulkan-utils.hpp"
     27#include "graphics-pipeline_vulkan.hpp"
    2628#include "vulkan-buffer.hpp"
    27 #include "graphics-pipeline_vulkan.hpp"
    28 #include "game-gui-sdl.hpp"
    2929
    3030using namespace glm;
     
    102102   vector<VkDeviceMemory> memory;
    103103   vector<VkDescriptorBufferInfo> infoSet;
     104   VkBufferUsageFlags usages;
     105   VkMemoryPropertyFlags properties;
    104106};
    105107
     
    427429      // TODO: Maybe move these to a different class, possibly VulkanBuffer or some new related class
    428430
    429       void createBufferSet(VkDeviceSize bufferSize, VkBufferUsageFlags flags, VkMemoryPropertyFlags properties,
     431      void createBufferSet(VkDeviceSize bufferSize, VkBufferUsageFlags usages, VkMemoryPropertyFlags properties,
    430432                           BufferSet& set);
    431433
Note: See TracChangeset for help on using the changeset viewer.