unsafe fn write_texture_descriptor(
        &mut self,
        image_infos: &[vk::DescriptorImageInfo],
    ) {
        let descriptor_write = vk::WriteDescriptorSet {
            dst_set: self.descriptor_set,
            dst_binding: 0,
            dst_array_element: 0,
            descriptor_type: vk::DescriptorType::COMBINED_IMAGE_SAMPLER,
            p_image_info: image_infos.as_ptr(),
            descriptor_count: image_infos.len() as u32,
            ..Default::default()
        };
        self.device
            .logical_device
            .update_descriptor_sets(&[descriptor_write], &[]);
    }
/// Update the combined image sampler descriptor.
///
/// Unsafe:  it is up to the caller to make sure the image sampler is not
///          currently in use by the gpu. This should be safe to invoke in
///          the middle of a frame's draw call.
Update the combined image sampler descriptor.
Unsafe:  it is up to the caller to make sure the image sampler is not
currently in use by the gpu. This should be safe to invoke in
the middle of a frame's draw call.
Update the combined image sampler descriptor . Unsafe : it is up to the caller to make sure the image sampler is not currently in use by the gpu . This should be safe to invoke in the middle of a frame ' s draw call .
unsafe fn write_texture_descriptor(
        &mut self,
        image_infos: &[vk::DescriptorImageInfo],
    ) {
        let descriptor_write = vk::WriteDescriptorSet {
            dst_set: self.descriptor_set,
            dst_binding: 0,
            dst_array_element: 0,
            descriptor_type: vk::DescriptorType::COMBINED_IMAGE_SAMPLER,
            p_image_info: image_infos.as_ptr(),
            descriptor_count: image_infos.len() as u32,
            ..Default::default()
        };
        self.device
            .logical_device
            .update_descriptor_sets(&[descriptor_write], &[]);
    }
unsafe fn write_texture_descriptor ( & mut self , image_infos : & [ vk :: DescriptorImageInfo ] , ) { let descriptor_write = vk :: WriteDescriptorSet { dst_set : self . descriptor_set , dst_binding : 0 , dst_array_element : 0 , descriptor_type : vk :: DescriptorType :: COMBINED_IMAGE_SAMPLER , p_image_info : image_infos . as_ptr ( ) , descriptor_count : image_infos . len ( ) as u32 , .. Default :: default ( ) } ; self . device . logical_device . update_descriptor_sets ( & [ descriptor_write ] , & [ ] ) ; }
Update the combined image sampler descriptor.
Update the combined image sampler descriptor .
&mut self
image_infos
&[vk::DescriptorImageInfo]