pub struct CommandBuffer {
pub info: CommandBufferInfo,
/* private fields */
}Expand description
Represents a Vulkan command buffer to which some work has been submitted.
Fields§
§info: CommandBufferInfoInformation used to create this object.
Implementations§
Source§impl CommandBuffer
impl CommandBuffer
Sourcepub fn has_executed(&self) -> Result<bool, DriverError>
pub fn has_executed(&self) -> Result<bool, DriverError>
Returns true after the GPU has executed the previous submission to this command buffer.
See Self::wait_until_executed to block while checking.
Sourcepub fn wait_until_executed(&mut self) -> Result<(), DriverError>
pub fn wait_until_executed(&mut self) -> Result<(), DriverError>
Stalls by blocking the current thread until the GPU has executed the previous submission to this command buffer.
See Self::has_executed to check without blocking.
Trait Implementations§
Source§impl Debug for CommandBuffer
impl Debug for CommandBuffer
Source§impl Deref for CommandBuffer
impl Deref for 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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more