Function vulkano::command_buffer::submit [] [src]

pub fn submit<P>(cmd: &Arc<PrimaryCommandBuffer<P>>, queue: &Arc<Queue>) -> Result<Arc<Submission>, OomError> where P: CommandPool + 'static, P::Finished: Send + Sync + 'static

Submits the command buffer to a queue so that it is executed.

Fences and semaphores are automatically handled.

Panic

  • Panics if the queue doesn't belong to the device this command buffer was created with.
  • Panics if the queue doesn't belong to the family the pool was created with.