pub struct Queue { /* private fields */ }
Expand description
Represents a queue where commands can be submitted.
Implementations
sourceimpl Queue
impl Queue
sourcepub fn queue_family_index(&self) -> u32
pub fn queue_family_index(&self) -> u32
Returns the index of the queue family that this queue belongs to.
sourcepub fn id_within_family(&self) -> u32
pub fn id_within_family(&self) -> u32
Returns the index of this queue within its queue family.
sourcepub fn with<'a, R>(
self: &'a Arc<Self>,
func: impl FnOnce(QueueGuard<'a>) -> R
) -> R
pub fn with<'a, R>(
self: &'a Arc<Self>,
func: impl FnOnce(QueueGuard<'a>) -> R
) -> R
Locks the queue and then calls the provided closure, providing it with an object that can be used to perform operations on the queue, such as command buffer submissions.
Trait Implementations
sourceimpl DeviceOwned for Queue
impl DeviceOwned for Queue
sourceimpl VulkanObject for Queue
impl VulkanObject for Queue
impl Eq for Queue
Auto Trait Implementations
impl !RefUnwindSafe for Queue
impl Send for Queue
impl Sync for Queue
impl Unpin for Queue
impl !UnwindSafe for Queue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more