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> Freeze for Adapter<B>
impl<B> RefUnwindSafe for Adapter<B>
impl<B> Send for Adapter<B>
impl<B> Sync for Adapter<B>
impl<B> Unpin for Adapter<B>
impl<B> UnwindSafe for Adapter<B>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more