Vulkan: Free RingAllocator buffers upon destruction

This commit is contained in:
goeiecool9999 2024-11-04 19:56:31 +01:00
parent 721d0cebad
commit f2096a61cc
1 changed files with 8 additions and 0 deletions

View File

@ -4,6 +4,14 @@
/* VKRSynchronizedMemoryBuffer */
VKRSynchronizedRingAllocator::~VKRSynchronizedRingAllocator()
{
for(auto& buf : m_buffers)
{
m_vkrMemMgr->DeleteBuffer(buf.vk_buffer, buf.vk_mem);
}
}
void VKRSynchronizedRingAllocator::addUploadBufferSyncPoint(AllocatorBuffer_t& buffer, uint32 offset)
{
auto cmdBufferId = m_vkr->GetCurrentCommandBufferId();