Struct vulkano::device::QueueGuard
source · pub struct QueueGuard<'a> { /* private fields */ }
Implementations§
source§impl<'a> QueueGuard<'a>
impl<'a> QueueGuard<'a>
sourcepub fn wait_idle(&mut self) -> Result<(), VulkanError>
pub fn wait_idle(&mut self) -> Result<(), VulkanError>
Waits until all work on this queue has finished, then releases ownership of all resources that were in use by the queue.
This is equivalent to submitting a fence to the queue, waiting on it, and then calling
cleanup_finished
.
Just like Device::wait_idle
, you shouldn’t have to call this function in a typical
program.
sourcepub fn begin_debug_utils_label(
&mut self,
label_info: DebugUtilsLabel
) -> Result<(), Box<ValidationError>>
pub fn begin_debug_utils_label( &mut self, label_info: DebugUtilsLabel ) -> Result<(), Box<ValidationError>>
Opens a queue debug label region.
The ext_debug_utils
extension must be enabled on the instance.
sourcepub unsafe fn end_debug_utils_label(
&mut self
) -> Result<(), Box<ValidationError>>
pub unsafe fn end_debug_utils_label( &mut self ) -> Result<(), Box<ValidationError>>
Closes a queue debug label region.
The ext_debug_utils
must be
enabled on the instance.
Safety
- There must be an outstanding queue label region begun with
begin_debug_utils_label
in the queue.
sourcepub fn insert_debug_utils_label(
&mut self,
label_info: DebugUtilsLabel
) -> Result<(), Box<ValidationError>>
pub fn insert_debug_utils_label( &mut self, label_info: DebugUtilsLabel ) -> Result<(), Box<ValidationError>>
Inserts a queue debug label.
The ext_debug_utils
must be
enabled on the instance.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for QueueGuard<'a>
impl<'a> Send for QueueGuard<'a>
impl<'a> Sync for QueueGuard<'a>
impl<'a> Unpin for QueueGuard<'a>
impl<'a> !UnwindSafe for QueueGuard<'a>
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