84 std::scoped_lock
mutex(mutex_);
88 VkImageView vk_image_view = image_views_.
pop_last();
89 vkDestroyImageView(device.
vk_handle(), vk_image_view, vk_allocation_callbacks);
93 std::pair<VkImage, VmaAllocation> image_allocation = images_.
pop_last();
95 vmaDestroyImage(device.
mem_allocator_get(), image_allocation.first, image_allocation.second);
99 std::pair<VkBuffer, VmaAllocation> buffer_allocation = buffers_.
pop_last();
105 while (!pipeline_layouts_.
is_empty()) {
106 VkPipelineLayout vk_pipeline_layout = pipeline_layouts_.
pop_last();
107 vkDestroyPipelineLayout(device.
vk_handle(), vk_pipeline_layout, vk_allocation_callbacks);
110 while (!shader_modules_.
is_empty()) {
111 VkShaderModule vk_shader_module = shader_modules_.
pop_last();
112 vkDestroyShaderModule(device.
vk_handle(), vk_shader_module, vk_allocation_callbacks);