[Vulkan] Add VMA to Buffer Cache

This commit is contained in:
DrChat
2018-02-09 20:58:17 -06:00
parent c7ffec3260
commit 5a637d6899
2 changed files with 23 additions and 14 deletions

View File

@@ -18,6 +18,8 @@
#include "xenia/ui/vulkan/vulkan.h"
#include "xenia/ui/vulkan/vulkan_device.h"
#include "third_party/vulkan/vk_mem_alloc.h"
#include <map>
namespace xe {
@@ -115,6 +117,7 @@ class BufferCache {
ui::vulkan::VulkanDevice* device_ = nullptr;
VkDeviceMemory gpu_memory_pool_ = nullptr;
VmaAllocator mem_allocator_ = nullptr;
// Staging ringbuffer we cycle through fast. Used for data we don't
// plan on keeping past the current frame.