pub struct Gpu<B: Backend> {
pub device: B::Device,
pub queue_groups: Vec<QueueGroup<B>>,
}
Expand description
Represents a combination of a logical device and the hardware queues it provides.
This structure is typically created from an adapter.
Fields
device: B::Device
Logical device for a given backend.
queue_groups: Vec<QueueGroup<B>>
The command queues that the device provides.
Trait Implementations
Auto Trait Implementations
impl<B> RefUnwindSafe for Gpu<B> where
<B as Backend>::Device: RefUnwindSafe,
<B as Backend>::Queue: RefUnwindSafe,
impl<B> Send for Gpu<B>
impl<B> Sync for Gpu<B>
impl<B> Unpin for Gpu<B> where
<B as Backend>::Device: Unpin,
<B as Backend>::Queue: Unpin,
impl<B> UnwindSafe for Gpu<B> where
<B as Backend>::Device: UnwindSafe,
<B as Backend>::Queue: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more