pub struct Adapter<B: Backend> {
pub info: AdapterInfo,
pub physical_device: B::PhysicalDevice,
pub queue_families: Vec<B::QueueFamily>,
}
Expand description
Information about a graphics device, supported by the backend.
The list of available adapters is obtained by calling
Instance::enumerate_adapters
.
To create a Gpu
from this type you can use the open
method on its physical_device
field.
Fields
info: AdapterInfo
General information about this adapter.
physical_device: B::PhysicalDevice
Actual physical device.
queue_families: Vec<B::QueueFamily>
Queue families supported by this adapter.
Trait Implementations
Auto Trait Implementations
impl<B> RefUnwindSafe for Adapter<B> where
<B as Backend>::PhysicalDevice: RefUnwindSafe,
<B as Backend>::QueueFamily: RefUnwindSafe,
impl<B> Send for Adapter<B>
impl<B> Sync for Adapter<B>
impl<B> Unpin for Adapter<B> where
<B as Backend>::PhysicalDevice: Unpin,
<B as Backend>::QueueFamily: Unpin,
impl<B> UnwindSafe for Adapter<B> where
<B as Backend>::PhysicalDevice: UnwindSafe,
<B as Backend>::QueueFamily: 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