[Vulkan] Implement ClearCache to clear upload_buffer_pool

This commit is contained in:
Herman S.
2025-12-01 18:28:12 +09:00
parent 4d15f0afea
commit 6057b0a7c7
2 changed files with 7 additions and 0 deletions

View File

@@ -209,6 +209,12 @@ void VulkanSharedMemory::Shutdown(bool from_destructor) {
}
}
void VulkanSharedMemory::ClearCache() {
SharedMemory::ClearCache();
upload_buffer_pool_->ClearCache();
}
void VulkanSharedMemory::CompletedSubmissionUpdated() {
upload_buffer_pool_->Reclaim(command_processor_.GetCompletedSubmission());
}

View File

@@ -35,6 +35,7 @@ class VulkanSharedMemory : public SharedMemory {
bool Initialize();
void Shutdown(bool from_destructor = false);
void ClearCache() override;
void CompletedSubmissionUpdated();
void EndSubmission();