Fix issue with freeing resources
This commit is contained in:
@@ -9,14 +9,16 @@
|
||||
#define CRASH_ON_MULTIPLE_MAPPINGS_TO_SAME_ALLOCATION
|
||||
|
||||
#include "MemoryAllocation.hpp"
|
||||
#include "MemoryPool.hpp"
|
||||
#include <memory>
|
||||
#include <functional>
|
||||
|
||||
namespace OpenVulkano::Vulkan
|
||||
{
|
||||
struct ManagedBuffer
|
||||
class ManagedBuffer
|
||||
{
|
||||
using Ptr = std::unique_ptr<ManagedBuffer, std::function<void(ManagedBuffer*)>>;
|
||||
public:
|
||||
using Ptr = std::unique_ptr<ManagedBuffer, ManagedBufferDeleter>;
|
||||
|
||||
MemoryAllocation* allocation;
|
||||
vk::DeviceSize offset, size;
|
||||
|
||||
Reference in New Issue
Block a user