Struct screen_13::driver::CommandBuffer
source · pub struct CommandBuffer {
pub info: CommandBufferInfo,
/* private fields */
}
Expand description
Represents a Vulkan command buffer to which some work has been submitted.
Fields§
§info: CommandBufferInfo
Information 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(&self) -> Result<(), DriverError>
pub fn wait_until_executed(&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 !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