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§

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::BeginRecording Command::EndRecording Once the command buffer has stopped recording, it can be submitted to the GPU to start performing work.

Functions exactly like issue_command except over multiple commands at once. Command execution is based on the order of commands inside the vector.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.