pub struct CommandBuffer { /* private fields */ }Expand description
Handle to a command buffer on the GPU.
A CommandBuffer represents a complete sequence of commands that may be submitted to a command
queue with Queue::submit. A CommandBuffer is obtained by recording a series of commands to
a CommandEncoder and then calling CommandEncoder::finish.
Corresponds to WebGPU GPUCommandBuffer.
Implementations§
Source§impl CommandBuffer
impl CommandBuffer
Sourcepub fn as_custom<T: CommandBufferInterface>(&self) -> Option<&T>
Available on custom only.
pub fn as_custom<T: CommandBufferInterface>(&self) -> Option<&T>
custom only.Returns custom implementation of CommandBuffer (if custom backend and is internally T)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CommandBuffer
impl !RefUnwindSafe for CommandBuffer
impl Send for CommandBuffer
impl Sync for CommandBuffer
impl Unpin for CommandBuffer
impl !UnwindSafe for CommandBuffer
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