aboutsummaryrefslogtreecommitdiff
path: root/adapters/fparkan-render-vulkan/src/ffi/swapchain_resources.rs
diff options
context:
space:
mode:
Diffstat (limited to 'adapters/fparkan-render-vulkan/src/ffi/swapchain_resources.rs')
-rw-r--r--adapters/fparkan-render-vulkan/src/ffi/swapchain_resources.rs10
1 files changed, 5 insertions, 5 deletions
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::<Vec<_>>();