pub struct CommandBuffer {
pub(crate) device: Arc<Device>,
label: String,
pub(crate) data: Mutex<CommandEncoderStatus>,
}
Expand description
A buffer of commands to be submitted to the GPU for execution.
Once a command buffer is submitted to the queue, its contents are taken
to construct a BakedCommands
, whose contents eventually become the
property of the submission queue.
Fields§
§device: Arc<Device>
§label: String
The label
from the descriptor used to create the resource.
data: Mutex<CommandEncoderStatus>
The mutable state of this command buffer.
Implementations§
Source§impl CommandBuffer
impl CommandBuffer
pub fn take_finished(&self) -> Result<CommandBufferMutable, CommandEncoderError>
Trait Implementations§
Source§impl Drop for CommandBuffer
impl Drop for CommandBuffer
Source§impl Labeled for CommandBuffer
impl Labeled for CommandBuffer
Source§fn label(&self) -> &str
fn label(&self) -> &str
Returns a string identifying this resource for logging and errors. Read more
fn error_ident(&self) -> ResourceErrorIdent
Source§impl ParentDevice for CommandBuffer
impl ParentDevice for CommandBuffer
Source§impl ResourceType for CommandBuffer
impl ResourceType for CommandBuffer
Source§impl StorageItem for CommandBuffer
impl StorageItem for CommandBuffer
type Marker = CommandBuffer
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