pub struct CommandBufferBuilder { /* private fields */ }
Expand description
Builder for creating a Command buffer that can issue commands directly to the GPU.
Implementations§
Source§impl CommandBufferBuilder
impl CommandBufferBuilder
pub fn new(level: CommandBufferLevel) -> Self
pub fn with_feature(self, feature: CommandBufferFeatures) -> Self
Sourcepub fn build<'command_pool, RenderBackend: Backend>(
self,
command_pool: &'command_pool mut CommandPool<RenderBackend>,
name: &str,
) -> CommandBuffer<'command_pool, RenderBackend>
pub fn build<'command_pool, RenderBackend: Backend>( self, command_pool: &'command_pool mut CommandPool<RenderBackend>, name: &str, ) -> CommandBuffer<'command_pool, RenderBackend>
Build the command buffer and tie it to the lifetime of the command pool that gets created.
Auto Trait Implementations§
impl Freeze for CommandBufferBuilder
impl RefUnwindSafe for CommandBufferBuilder
impl Send for CommandBufferBuilder
impl Sync for CommandBufferBuilder
impl Unpin for CommandBufferBuilder
impl UnwindSafe for CommandBufferBuilder
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