Add a method to execute an arbitrary secondary vk::CommandBuffer (#842)

This commit is contained in:
Benjamin Saunders 2017-10-03 05:19:43 -07:00 committed by tomaka
parent 8c05eb6453
commit d845b15ff1

View File

@ -1446,6 +1446,12 @@ impl UnsafeCommandBufferBuilderExecuteCommands {
// TODO: debug assert that it is a secondary command buffer? // TODO: debug assert that it is a secondary command buffer?
self.raw_cbs.push(cb.inner().internal_object()); self.raw_cbs.push(cb.inner().internal_object());
} }
/// Adds a command buffer to the list.
#[inline]
pub unsafe fn add_raw(&mut self, cb: vk::CommandBuffer) {
self.raw_cbs.push(cb);
}
} }
// TODO: move somewhere else? // TODO: move somewhere else?