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::PhysicalDevicequeue_families: Vec<B::QueueFamily>

Queue families supported by this adapter.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.