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]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
; }

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

Associated Types

type CommandQueue: CommandQueue[src]

Associated CommandQueue type.

type Device: Device[src]

Associated Device type.

type QueueFamily: QueueFamily[src]

Associated QueueFamily type.

Loading content...

Required methods

fn enumerate_adapters() -> Vec<Self>[src]

Enumerate all available adapters supporting this backend

fn open<'a, I>(&self, queue_descs: I) -> (Self::Device, Vec<Self::CommandQueue>) where
    I: Iterator<Item = (&'a Self::QueueFamily, u32)>, 
[src]

Create a new device and command queues.

fn get_info(&self) -> &AdapterInfo[src]

Get the AdapterInfo for this adapater.

fn get_queue_families(&self) -> &[Self::QueueFamily]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Return the supported queue families for this adapter.

Loading content...

Implementors

Loading content...