pub struct Queue { /* private fields */ }
Expand description
Represents a queue where commands can be submitted.
Implementations§
source§impl 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.