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:
parent
9a63ed6c50
commit
69b34693f0
@ -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();
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user