1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-25 12:12:50 +01:00

vk: Simplify compute job cleanup on exit

- Just call destroy automatically on object destruct
This commit is contained in:
kd-11 2021-08-04 03:05:23 +03:00 committed by kd-11
parent 9a63ed6c50
commit 69b34693f0
2 changed files with 3 additions and 4 deletions

View File

@ -34,6 +34,9 @@ namespace vk
u32 optimal_kernel_size = 1;
u32 max_invocations_x = 65535;
compute_task() = default;
virtual ~compute_task() { destroy(); }
virtual std::vector<std::pair<VkDescriptorType, u8>> get_descriptor_layout();
void init_descriptors();

View File

@ -72,10 +72,6 @@ namespace vk
vk::get_upload_heap()->destroy();
for (const auto& p : g_compute_tasks)
{
p.second->destroy();
}
g_compute_tasks.clear();
for (const auto& p : g_overlay_passes)