Function adapter

Source
pub async fn adapter(
    instance: &Instance,
    compatible_surface: Option<&Surface<'_>>,
) -> Result<Adapter, ContextError>
Expand description

Create a new [wgpu::Adapter].