Renderer: Add release queue to fix deletion while use

This commit is contained in:
Jérôme Leclercq
2021-05-14 02:04:47 +02:00
parent 51ecff2912
commit f280cff0a2
13 changed files with 163 additions and 15 deletions

View File

@@ -7,7 +7,7 @@
namespace Nz
{
inline Vk::Fence& Nz::VulkanRenderImage::GetInFlightFence()
inline Vk::Fence& VulkanRenderImage::GetInFlightFence()
{
return m_inFlightFence;
}
@@ -29,6 +29,8 @@ namespace Nz
inline void VulkanRenderImage::Reset(UInt32 imageIndex)
{
FlushReleaseQueue();
m_graphicalCommandsBuffers.clear();
m_currentCommandBuffer = 0;
m_imageIndex = imageIndex;