From b813122971a348f9237c7eeb0568fc1dcd47749c Mon Sep 17 00:00:00 2001 From: Sergey Yablokov Date: Tue, 19 Nov 2024 19:00:32 +0100 Subject: [PATCH] Release geometry data before PT loading --- internal/Vk/ContextVK.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/internal/Vk/ContextVK.h b/internal/Vk/ContextVK.h index 6ee39370..bd0a5449 100644 --- a/internal/Vk/ContextVK.h +++ b/internal/Vk/ContextVK.h @@ -128,18 +128,18 @@ class Context { bool frame_cpu_synced[MaxFramesInFlight] = {}; // resources scheduled for deferred destruction - SmallVector images_to_destroy[MaxFramesInFlight]; - SmallVector image_views_to_destroy[MaxFramesInFlight]; - SmallVector samplers_to_destroy[MaxFramesInFlight]; - SmallVector allocs_to_free[MaxFramesInFlight]; - SmallVector bufs_to_destroy[MaxFramesInFlight]; - SmallVector buf_views_to_destroy[MaxFramesInFlight]; - SmallVector mem_to_free[MaxFramesInFlight]; - SmallVector render_passes_to_destroy[MaxFramesInFlight]; - SmallVector descriptor_pools_to_destroy[MaxFramesInFlight]; - SmallVector pipeline_layouts_to_destroy[MaxFramesInFlight]; - SmallVector pipelines_to_destroy[MaxFramesInFlight]; - SmallVector acc_structs_to_destroy[MaxFramesInFlight]; + std::vector images_to_destroy[MaxFramesInFlight]; + std::vector image_views_to_destroy[MaxFramesInFlight]; + std::vector samplers_to_destroy[MaxFramesInFlight]; + std::vector allocs_to_free[MaxFramesInFlight]; + std::vector bufs_to_destroy[MaxFramesInFlight]; + std::vector buf_views_to_destroy[MaxFramesInFlight]; + std::vector mem_to_free[MaxFramesInFlight]; + std::vector render_passes_to_destroy[MaxFramesInFlight]; + std::vector descriptor_pools_to_destroy[MaxFramesInFlight]; + std::vector pipeline_layouts_to_destroy[MaxFramesInFlight]; + std::vector pipelines_to_destroy[MaxFramesInFlight]; + std::vector acc_structs_to_destroy[MaxFramesInFlight]; static int QueryAvailableDevices(ILog *log, gpu_device_t out_devices[], int capacity);