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