pub type NativeAdapterSelectorMethod = Arc<dyn Fn(&[Adapter], Option<&Surface<'_>>) -> Result<Adapter, String> + Send + Sync>;
Expand description
Method for selecting an adapter on native.
This can be used for fully custom adapter selection.
If available, wgpu::Surface
is passed to allow checking for surface compatibility.
Aliased Typeยง
struct NativeAdapterSelectorMethod { /* private fields */ }