pub struct CommandBuffer<'command_pool, RenderBackend: Backend> { /* private fields */ }
Expand description
Representation of a command buffer allocated on the GPU. The lifetime of the command is constrained to the lifetime of the command pool that built it to ensure that it cannot be used while
Implementations§
Source§impl<'command_pool, RenderBackend: Backend> CommandBuffer<'command_pool, RenderBackend>
impl<'command_pool, RenderBackend: Backend> CommandBuffer<'command_pool, RenderBackend>
Sourcepub fn issue_command(&mut self, command: Command<RenderBackend>)
pub fn issue_command(&mut self, command: Command<RenderBackend>)
Validates and issues a command directly to the buffer on the GPU.
If using a newly created Primary CommandBuffer the first and last commands
that should be issued are:
Command
Sourcepub fn issue_commands(&mut self, commands: Vec<Command<RenderBackend>>)
pub fn issue_commands(&mut self, commands: Vec<Command<RenderBackend>>)
Functions exactly like issue_command except over multiple commands at once. Command execution is based on the order of commands inside the vector.
pub fn reset(&mut self)
Auto Trait Implementations§
impl<'command_pool, RenderBackend> Freeze for CommandBuffer<'command_pool, RenderBackend>
impl<'command_pool, RenderBackend> RefUnwindSafe for CommandBuffer<'command_pool, RenderBackend>
impl<'command_pool, RenderBackend> Send for CommandBuffer<'command_pool, RenderBackend>
impl<'command_pool, RenderBackend> Sync for CommandBuffer<'command_pool, RenderBackend>
impl<'command_pool, RenderBackend> Unpin for CommandBuffer<'command_pool, RenderBackend>
impl<'command_pool, RenderBackend> !UnwindSafe for CommandBuffer<'command_pool, RenderBackend>
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