pub fn create_n_frames(
        device: &Arc<Device>,
        framebuffers: &[vk::Framebuffer],
    ) -> Result<Vec<Option<Self>>> {
        let mut result = vec![];
        for (i, framebuffer) in framebuffers.iter().enumerate() {
            result.push(Some(Self::new(
                device.clone(),
                *framebuffer,
                format!("Frame {}", i),
            )?));
        }
        Ok(result)
    }
/// Create a collection of frames with resource debug names based on the
/// frame index.
Create a collection of frames with resource debug names based on the
frame index.
Create a collection of frames with resource debug names based on the frame index .
pub fn create_n_frames(
        device: &Arc<Device>,
        framebuffers: &[vk::Framebuffer],
    ) -> Result<Vec<Option<Self>>> {
        let mut result = vec![];
        for (i, framebuffer) in framebuffers.iter().enumerate() {
            result.push(Some(Self::new(
                device.clone(),
                *framebuffer,
                format!("Frame {}", i),
            )?));
        }
        Ok(result)
    }
pub fn create_n_frames ( device : & Arc < Device > , framebuffers : & [ vk :: Framebuffer ] , ) -> Result < Vec < Option < Self > > > { let mut result = vec ! [ ] ; for ( i , framebuffer ) in framebuffers . iter ( ) . enumerate ( ) { result . push ( Some ( Self :: new ( device . clone ( ) , * framebuffer , format ! ( " " i ) , ) ? ) ) ; } Ok ( result ) }
Create a collection of frames with resource debug names based on the
frame index.
Create a collection of frames with resource debug names based on the frame index .
device
&Arc<Device>
framebuffers
&[vk::Framebuffer]