Free resources when VulkanGeometry is freed
This commit is contained in:
@@ -8,7 +8,9 @@
|
||||
|
||||
#define CRASH_ON_MULTIPLE_MAPPINGS_TO_SAME_ALLOCATION
|
||||
|
||||
#include <memory>
|
||||
#include <vulkan/vulkan.hpp>
|
||||
#include <functional>
|
||||
|
||||
namespace openVulkanoCpp::Vulkan
|
||||
{
|
||||
@@ -87,6 +89,8 @@ namespace openVulkanoCpp::Vulkan
|
||||
|
||||
struct ManagedBuffer
|
||||
{
|
||||
using Ptr = std::unique_ptr<ManagedBuffer, std::function<void(ManagedBuffer*)>>;
|
||||
|
||||
MemoryAllocation* allocation;
|
||||
vk::DeviceSize offset, size;
|
||||
vk::Buffer buffer;
|
||||
|
||||
Reference in New Issue
Block a user