pub trait InstanceExt {
    // Required methods
    fn create_device<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        window: Arc<Window>,
        options: AdapterOptions,
        device_descriptor: &'life1 DeviceDescriptor<'_>,
        trace_path: Option<&'life2 Path>,
        present_mode: PresentMode
    ) -> Pin<Box<dyn Future<Output = Result<GpuRenderer, GraphicsError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn get_adapters(&self, options: AdapterOptions) -> Vec<(Adapter, u32)>;
}

Required Methods§

source

fn create_device<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, window: Arc<Window>, options: AdapterOptions, device_descriptor: &'life1 DeviceDescriptor<'_>, trace_path: Option<&'life2 Path>, present_mode: PresentMode ) -> Pin<Box<dyn Future<Output = Result<GpuRenderer, GraphicsError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

source

fn get_adapters(&self, options: AdapterOptions) -> Vec<(Adapter, u32)>

Implementations on Foreign Types§

source§

impl InstanceExt for Instance

source§

fn get_adapters(&self, options: AdapterOptions) -> Vec<(Adapter, u32)>

source§

fn create_device<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, window: Arc<Window>, options: AdapterOptions, device_descriptor: &'life1 DeviceDescriptor<'_>, trace_path: Option<&'life2 Path>, present_mode: PresentMode ) -> Pin<Box<dyn Future<Output = Result<GpuRenderer, GraphicsError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§