pub unsafe fn submit_and_wait_idle(
        &self,
        queue: &Queue,
        command_buffer: vk::CommandBuffer,
    ) -> Result<()> {
        let command_buffers = &[command_buffer];
        self.logical_device.queue_submit(
            queue.raw(),
            &[vk::SubmitInfo {
                p_command_buffers: command_buffers.as_ptr(),
                command_buffer_count: 1,
                ..Default::default()
            }],
            vk::Fence::null(),
        )?;
        self.logical_device.queue_wait_idle(queue.raw())?;
        Ok(())
    }
/// Submit a command buffer to the specified queue, then wait for it to
/// idle.
Submit a command buffer to the specified queue, then wait for it to
idle.
Submit a command buffer to the specified queue then wait for it to idle .
pub unsafe fn submit_and_wait_idle(
        &self,
        queue: &Queue,
        command_buffer: vk::CommandBuffer,
    ) -> Result<()> {
        let command_buffers = &[command_buffer];
        self.logical_device.queue_submit(
            queue.raw(),
            &[vk::SubmitInfo {
                p_command_buffers: command_buffers.as_ptr(),
                command_buffer_count: 1,
                ..Default::default()
            }],
            vk::Fence::null(),
        )?;
        self.logical_device.queue_wait_idle(queue.raw())?;
        Ok(())
    }
pub unsafe fn submit_and_wait_idle ( & self , queue : & Queue , command_buffer : vk :: CommandBuffer , ) -> Result < ( ) > { let command_buffers = & [ command_buffer ] ; self . logical_device . queue_submit ( queue . raw ( ) , & [ vk :: SubmitInfo { p_command_buffers : command_buffers . as_ptr ( ) , command_buffer_count : 1 , .. Default :: default ( ) } ] , vk :: Fence :: null ( ) , ) ? ; self . logical_device . queue_wait_idle ( queue . raw ( ) ) ? ; Ok ( ( ) ) }
Submit a command buffer to the specified queue, then wait for it to
idle.
Submit a command buffer to the specified queue then wait for it to idle .
&self
queue
&Queue
command_buffer
vk::CommandBuffer