From b0c3a064c29c2bf97981f45806696c2dd0d4dd90 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 2 Dec 2026 07:24:01 +0400 Subject: feat(ui): preview new warbot geometry during a mission On stock Field Camp, open a compatible Unit DAT created after start, resize the preview, switch to a resident project, reopen the new project, and return to the mission with Vulkan validation clean. The factory reserve for new geometry is still prepared at mission load. --- adapters/fparkan-render-vulkan/src/ffi/swapchain_resources.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'adapters/fparkan-render-vulkan/src/ffi/swapchain_resources.rs') diff --git a/adapters/fparkan-render-vulkan/src/ffi/swapchain_resources.rs b/adapters/fparkan-render-vulkan/src/ffi/swapchain_resources.rs index 295cd70b..a20f184d 100644 --- a/adapters/fparkan-render-vulkan/src/ffi/swapchain_resources.rs +++ b/adapters/fparkan-render-vulkan/src/ffi/swapchain_resources.rs @@ -179,7 +179,7 @@ pub(super) fn create_swapchain_resources( pipeline_cache: vk::PipelineCache, vertex_buffer: &VulkanAllocatedBuffer, index_buffer: &VulkanAllocatedBuffer, - textures: &[VulkanAllocatedImage], + textures: &[vk::ImageView], texture_slot_indices: &[usize], base_pipeline_states: &[LegacyPipelineState], reflection_enabled: bool, @@ -502,7 +502,7 @@ fn create_swapchain_pipeline_bundle( pipeline_cache: vk::PipelineCache, format: i32, extent: (u32, u32), - textures: &[VulkanAllocatedImage], + textures: &[vk::ImageView], texture_slot_indices: &[usize], base_pipeline_states: &[LegacyPipelineState], reflection_layout: vk::DescriptorSetLayout, @@ -777,7 +777,7 @@ fn create_pipeline_layout( fn create_texture_descriptor_bundle( device: &VulkanLogicalDeviceProbe, - textures: &[VulkanAllocatedImage], + textures: &[vk::ImageView], texture_slot_indices: &[usize], frame_uniform_buffer: &VulkanAllocatedBuffer, material_specular_buffer: &VulkanAllocatedBuffer, @@ -931,10 +931,10 @@ fn create_texture_descriptor_bundle( let image_infos = texture_slot_indices .iter() .map(|texture_index| { - let texture = &textures[*texture_index]; + let texture = textures[*texture_index]; vk::DescriptorImageInfo::default() .sampler(sampler) - .image_view(texture.view) + .image_view(texture) .image_layout(vk::ImageLayout::SHADER_READ_ONLY_OPTIMAL) }) .collect::>(); -- cgit v1.2.3