ascending_graphics

Trait AdapterExt

Source
pub trait AdapterExt {
    // Required method
    fn create_renderer<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        self,
        instance: &'life0 Instance,
        window: &'life1 Arc<Window>,
        device_descriptor: &'life2 DeviceDescriptor<'_>,
        trace_path: Option<&'life3 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,
             'life3: 'async_trait;
}
Expand description

Trait used to Allow the wgpu::Adapter to Create a GpuRenderer.

Required Methods§

Source

fn create_renderer<'life0, 'life1, 'life2, 'life3, 'async_trait>( self, instance: &'life0 Instance, window: &'life1 Arc<Window>, device_descriptor: &'life2 DeviceDescriptor<'_>, trace_path: Option<&'life3 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, 'life3: 'async_trait,

Creates a GpuRenderer.

Implementations on Foreign Types§

Source§

impl AdapterExt for Adapter

Source§

fn create_renderer<'life0, 'life1, 'life2, 'life3, 'async_trait>( self, instance: &'life0 Instance, window: &'life1 Arc<Window>, device_descriptor: &'life2 DeviceDescriptor<'_>, trace_path: Option<&'life3 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, 'life3: 'async_trait,

Implementors§