Creating VmaAllocator object for each Vulkan device.

This commit is contained in:
2022-01-15 03:34:41 -08:00
parent 2df55cf31c
commit 739111ed2d
3 changed files with 50 additions and 17 deletions

View File

@@ -30,15 +30,16 @@
//
#include "KREngine-common.h"
#include "KRContextObject.h"
#ifndef KRDEVICE_H
#define KRDEVICE_H
class KRDevice
class KRDevice : public KRContextObject
{
public:
KRDevice(const VkPhysicalDevice& device);
~KRDevice();
KRDevice(KRContext& context, const VkPhysicalDevice& device);
virtual ~KRDevice();
KRDevice(const KRDevice&) = delete;
KRDevice& operator=(const KRDevice&) = delete;
@@ -58,6 +59,7 @@ public:
VkCommandPool m_computeCommandPool;
std::vector<VkCommandBuffer> m_graphicsCommandBuffers;
std::vector<VkCommandBuffer> m_computeCommandBuffers;
VmaAllocator m_allocator;
private:
};