fn build_descriptor_image_info(&self) -> Vec<vk::DescriptorImageInfo> {
        let default_view =
            unsafe { self.textures[0].as_ref().unwrap().texture.raw_view() };

        self.textures
            .iter()
            .map(|binding_option| match binding_option {
                Some(binding) => vk::DescriptorImageInfo {
                    image_layout: vk::ImageLayout::SHADER_READ_ONLY_OPTIMAL,
                    image_view: unsafe { binding.texture.raw_view() },
                    sampler: self.samplers
                        [binding.sampler_handle.index() as usize],
                },

                None => vk::DescriptorImageInfo {
                    image_layout: vk::ImageLayout::SHADER_READ_ONLY_OPTIMAL,
                    image_view: default_view,
                    sampler: self.samplers[0],
                },
            })
            .collect()
    }
/// Build a vector of descriptor image info entries. This can be used when
/// updating a descriptor set with specific image bindings.
Build a vector of descriptor image info entries. This can be used when
updating a descriptor set with specific image bindings.
Build a vector of descriptor image info entries . This can be used when updating a descriptor set with specific image bindings .
fn build_descriptor_image_info(&self) -> Vec<vk::DescriptorImageInfo> {
        let default_view =
            unsafe { self.textures[0].as_ref().unwrap().texture.raw_view() };
        self.textures
            .iter()
            .map(|binding_option| match binding_option {
                Some(binding) => vk::DescriptorImageInfo {
                    image_layout: vk::ImageLayout::SHADER_READ_ONLY_OPTIMAL,
                    image_view: unsafe { binding.texture.raw_view() },
                    sampler: self.samplers
                        [binding.sampler_handle.index() as usize],
                },
                None => vk::DescriptorImageInfo {
                    image_layout: vk::ImageLayout::SHADER_READ_ONLY_OPTIMAL,
                    image_view: default_view,
                    sampler: self.samplers[0],
                },
            })
            .collect()
    }
fn build_descriptor_image_info ( & self ) -> Vec < vk :: DescriptorImageInfo > { let default_view = unsafe { self . textures [ 0 ] . as_ref ( ) . unwrap ( ) . texture . raw_view ( ) } ; self . textures . iter ( ) . map ( | binding_option | match binding_option { Some ( binding ) => vk :: DescriptorImageInfo { image_layout : vk :: ImageLayout :: SHADER_READ_ONLY_OPTIMAL , image_view : unsafe { binding . texture . raw_view ( ) } , sampler : self . samplers [ binding . sampler_handle . index ( ) as usize ] , } , None => vk :: DescriptorImageInfo { image_layout : vk :: ImageLayout :: SHADER_READ_ONLY_OPTIMAL , image_view : default_view , sampler : self . samplers [ 0 ] , } , } ) . collect ( ) }
Build a vector of descriptor image info entries.
Build a vector of descriptor image info entries .
&self