From 19e3a0f319fd04c1dde803796ec272d038b634f7 Mon Sep 17 00:00:00 2001 From: Irene Knapp Date: Wed, 12 Aug 2026 19:13:32 -0700 Subject: split the texture's sampler and its image view into separaet bindings this will make it easier to change the image view dynamically as a push update, in a future CL Force-Push: yes Change-Id: If7cfab07913a5a462e16dd7fb478ed491d33d4d9 --- src/graphics/window_dressing.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/graphics/window_dressing.rs') diff --git a/src/graphics/window_dressing.rs b/src/graphics/window_dressing.rs index cca0dc8..07dfaf0 100644 --- a/src/graphics/window_dressing.rs +++ b/src/graphics/window_dressing.rs @@ -428,10 +428,14 @@ fn init_descriptor_pool(device: &Device, count: usize) .descriptor_count(count as u32); let sampler_size = vk::DescriptorPoolSize::builder() - .type_(vk::DescriptorType::COMBINED_IMAGE_SAMPLER) + .type_(vk::DescriptorType::SAMPLER) .descriptor_count(count as u32); - let sizes = [uniform_block_size, sampler_size]; + let texture_size = vk::DescriptorPoolSize::builder() + .type_(vk::DescriptorType::SAMPLED_IMAGE) + .descriptor_count(count as u32); + + let sizes = [uniform_block_size, sampler_size, texture_size]; let pool_info = vk::DescriptorPoolCreateInfo::builder() .pool_sizes(&sizes) .max_sets(count as u32); -- cgit 1.4.1