Struct screen_13::driver::CommandBuffer
source · pub struct CommandBuffer { /* private fields */ }Expand description
Represents a Vulkan command buffer to which some work has been submitted.
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.