pub struct BatchBuilder { /* private fields */ }Expand description
Batch submission builder for convenient API
Implementations§
Source§impl BatchBuilder
impl BatchBuilder
pub fn new(queue: VkQueue) -> Self
Sourcepub fn add_command_buffer(self, cb: VkCommandBuffer) -> Self
pub fn add_command_buffer(self, cb: VkCommandBuffer) -> Self
Add command buffer to batch
Sourcepub unsafe fn submit(self) -> Result<u64, IcdError>
pub unsafe fn submit(self) -> Result<u64, IcdError>
Submit the batch
§Safety
This function is unsafe because:
- All command buffers must be valid and in executable state
- The queue must be valid and not in use by another thread
- Calls unsafe functions: begin_batch, add_to_batch, submit_batch
- Command buffers must not be reset or freed until submission completes
Auto Trait Implementations§
impl Freeze for BatchBuilder
impl RefUnwindSafe for BatchBuilder
impl Send for BatchBuilder
impl Sync for BatchBuilder
impl Unpin for BatchBuilder
impl UnwindSafe for BatchBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more