Trait gfx_core::Adapter[][src]

pub trait Adapter: Sized {
    type CommandQueue: CommandQueue;
    type Device: Device;
    type QueueFamily: QueueFamily;
    fn enumerate_adapters() -> Vec<Self>;
fn open<'a, I>(
        &self,
        queue_descs: I
    ) -> (Self::Device, Vec<Self::CommandQueue>)
    where
        I: Iterator<Item = (&'a Self::QueueFamily, u32)>
;
fn get_info(&self) -> &AdapterInfo;
fn get_queue_families(&self) -> &[Self::QueueFamily]; }

Represents a physical or virtual device, which is capable of running the backend.

Associated Types

Associated CommandQueue type.

Associated Device type.

Associated QueueFamily type.

Required Methods

Important traits for Vec<u8>

Enumerate all available adapters supporting this backend

Create a new device and command queues.

Get the AdapterInfo for this adapater.

Important traits for &'a [u8]

Return the supported queue families for this adapter.

Implementors