mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-25 16:25:31 +00:00
Add a method to execute an arbitrary secondary vk::CommandBuffer (#842)
This commit is contained in:
parent
8c05eb6453
commit
d845b15ff1
@ -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?
|
||||||
|
Loading…
Reference in New Issue
Block a user