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§
Sourcefn 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,
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.