Cleanup memory pool data on close
This commit is contained in:
@@ -35,12 +35,14 @@ namespace OpenVulkano::Vulkan
|
||||
public:
|
||||
using ManagedBufferPtr = std::unique_ptr<ManagedBuffer, ManagedBufferDeleter>;
|
||||
|
||||
MemoryPool();
|
||||
MemoryPool() = default;
|
||||
|
||||
~MemoryPool();
|
||||
|
||||
void Init(Device* dev, int bufferCount);
|
||||
|
||||
void Close();
|
||||
|
||||
void StartFrame(uint64_t bufferId);
|
||||
|
||||
MemoryAllocation* CreateMemoryAllocation(size_t size, uint32_t type, bool addToCache = true);
|
||||
|
||||
Reference in New Issue
Block a user