pub struct Queues<B: Backend>(_);
Expand description
Contains a list of all instantiated queues. Conceptually structured as a collection of
QueueGroup
s, one for each queue family.
Implementations
sourceimpl<B: Backend> Queues<B>
impl<B: Backend> Queues<B>
sourcepub fn take<C: Capability>(
&mut self,
id: QueueFamilyId
) -> Option<QueueGroup<B, C>>
pub fn take<C: Capability>(
&mut self,
id: QueueFamilyId
) -> Option<QueueGroup<B, C>>
Removes the queue family with the passed id from the queue list and returns the queue group.
Panics
Panics if the family doesn’t expose required queue capabilities.
sourcepub fn take_raw(&mut self, id: QueueFamilyId) -> Option<Vec<B::CommandQueue>>
pub fn take_raw(&mut self, id: QueueFamilyId) -> Option<Vec<B::CommandQueue>>
Removes the queue family with the passed id from the queue list and returns the command queues.
Auto Trait Implementations
impl<B> RefUnwindSafe for Queues<B>where
<B as Backend>::CommandQueue: RefUnwindSafe,
<B as Backend>::QueueFamily: RefUnwindSafe,
impl<B> Send for Queues<B>
impl<B> Sync for Queues<B>
impl<B> Unpin for Queues<B>where
<B as Backend>::CommandQueue: Unpin,
<B as Backend>::QueueFamily: Unpin,
impl<B> UnwindSafe for Queues<B>where
<B as Backend>::CommandQueue: UnwindSafe,
<B as Backend>::QueueFamily: UnwindSafe,
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