mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-28 19:20:36 +00:00
vk: Minor improvement to descriptor and garbage collector interaction
This commit is contained in:
parent
12f213ffad
commit
f2f95a20a3
@ -876,6 +876,9 @@ VKGSRender::~VKGSRender()
|
||||
g_fxo->get<vk::AsyncTaskScheduler>().destroy();
|
||||
}
|
||||
|
||||
// GC cleanup
|
||||
vk::get_resource_manager()->flush();
|
||||
|
||||
// Host data
|
||||
if (m_host_object_data)
|
||||
{
|
||||
@ -945,7 +948,9 @@ VKGSRender::~VKGSRender()
|
||||
// Overlay text handler
|
||||
m_text_writer.reset();
|
||||
|
||||
//Pipeline descriptors
|
||||
// Pipeline descriptors
|
||||
m_descriptor_pool.destroy();
|
||||
|
||||
vkDestroyPipelineLayout(*m_device, m_pipeline_layout, nullptr);
|
||||
vkDestroyDescriptorSetLayout(*m_device, m_descriptor_layouts, nullptr);
|
||||
|
||||
@ -963,9 +968,6 @@ VKGSRender::~VKGSRender()
|
||||
// Global resources
|
||||
vk::destroy_global_resources();
|
||||
|
||||
// Destroy at the end in case of lingering callbacks
|
||||
m_descriptor_pool.destroy();
|
||||
|
||||
// Device handles/contexts
|
||||
m_swapchain->destroy();
|
||||
m_instance.destroy();
|
||||
|
@ -75,6 +75,11 @@ namespace vk
|
||||
~resource_manager() = default;
|
||||
|
||||
void destroy()
|
||||
{
|
||||
flush();
|
||||
}
|
||||
|
||||
void flush()
|
||||
{
|
||||
m_eid_map.clear();
|
||||
m_sampler_pool.clear();
|
||||
|
Loading…
x
Reference in New Issue
Block a user