mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-08 07:51:19 +12:00
Vulkan: Free RingAllocator buffers upon destruction
This commit is contained in:
parent
721d0cebad
commit
f2096a61cc
1 changed files with 8 additions and 0 deletions
|
@ -4,6 +4,14 @@
|
||||||
|
|
||||||
/* VKRSynchronizedMemoryBuffer */
|
/* 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)
|
void VKRSynchronizedRingAllocator::addUploadBufferSyncPoint(AllocatorBuffer_t& buffer, uint32 offset)
|
||||||
{
|
{
|
||||||
auto cmdBufferId = m_vkr->GetCurrentCommandBufferId();
|
auto cmdBufferId = m_vkr->GetCurrentCommandBufferId();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue