Struct vulkano::device::QueueGuard

source ·
pub struct QueueGuard<'a> { /* private fields */ }

Implementations§

source§

impl<'a> QueueGuard<'a>

source

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.

source

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.

source

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.
source

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> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.