Free vulkan surface
This commit is contained in:
@@ -43,6 +43,7 @@ namespace openVulkanoCpp::Vulkan
|
|||||||
swapChainRenderPass.Close();
|
swapChainRenderPass.Close();
|
||||||
swapChain.Close();
|
swapChain.Close();
|
||||||
deviceManager.Close();
|
deviceManager.Close();
|
||||||
|
vkDestroySurfaceKHR(static_cast<VkInstance>(instance), surface, nullptr);
|
||||||
//TODO
|
//TODO
|
||||||
|
|
||||||
if (enableValidationLayer) Debug::CloseValidationLayers(instance);
|
if (enableValidationLayer) Debug::CloseValidationLayers(instance);
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
#include "Scene/Vertex.hpp"
|
#include "Scene/Vertex.hpp"
|
||||||
#include "Scene/Geometry.hpp"
|
#include "Scene/Geometry.hpp"
|
||||||
#include "Scene/Material.hpp"
|
#include "Scene/Material.hpp"
|
||||||
|
#include "Math/ByteSize.hpp"
|
||||||
#include "Vulkan/Context.hpp"
|
#include "Vulkan/Context.hpp"
|
||||||
#include "Vulkan/Scene/VulkanShader.hpp"
|
#include "Vulkan/Scene/VulkanShader.hpp"
|
||||||
#include "Vulkan/Scene/VulkanGeometry.hpp"
|
#include "Vulkan/Scene/VulkanGeometry.hpp"
|
||||||
@@ -336,7 +337,7 @@ namespace openVulkanoCpp::Vulkan
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(!alloc && createIfAllFull) alloc = CreateMemoryAllocation(64 * 1024 * 1024, type, true);
|
if(!alloc && createIfAllFull) alloc = CreateMemoryAllocation(64_MiB, type, true);
|
||||||
if(alloc) lastAllocation = alloc;
|
if(alloc) lastAllocation = alloc;
|
||||||
return alloc;
|
return alloc;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user