Struct lambda_platform::gfx::command::CommandBuffer
source · 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.