// Initialise a new empty frame ready for "drawing".
Initialise a new empty frame ready for "drawing".
Initialise a new empty frame ready for " drawing " .
pub(crate) fn new_empty(
        queue: Arc<vk::Queue>,
        window_id: window::Id,
        nth: u64,
        swapchain_image_index: usize,
        swapchain_image: Arc<SwapchainImage>,
        swapchain_frame_created: u64,
    ) -> Result<Self, vk::OomError> {
        let device = queue.device().clone();
        let cb_builder = AutoCommandBufferBuilder::primary_one_time_submit(device, queue.family())?;
        let command_buffer_builder = Mutex::new(Some(cb_builder));
        let frame = RawFrame {
            command_buffer_builder,
            window_id,
            nth,
            swapchain_image_index,
            swapchain_image,
            swapchain_frame_created,
            queue,
        };
        Ok(frame)
    }
pub ( crate ) fn new_empty ( queue : Arc < vk :: Queue > , window_id : window :: Id , nth : u64 , swapchain_image_index : usize , swapchain_image : Arc < SwapchainImage > , swapchain_frame_created : u64 , ) -> Result < Self , vk :: OomError > { let device = queue . device ( ) . clone ( ) ; let cb_builder = AutoCommandBufferBuilder :: primary_one_time_submit ( device , queue . family ( ) ) ? ; let command_buffer_builder = Mutex :: new ( Some ( cb_builder ) ) ; let frame = RawFrame { command_buffer_builder , window_id , nth , swapchain_image_index , swapchain_image , swapchain_frame_created , queue , } ; Ok ( frame ) }
Initialise a new empty frame ready for "drawing".
Initialise a new empty frame ready for " drawing " .
queue
Arc<vk::Queue>
window_id
window::Id
nth
u64
swapchain_image_index
usize
swapchain_image
Arc<SwapchainImage>
swapchain_frame_created
u64