mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-28 09:09:19 +01:00
Changed enumerate_adapters to be able to work with custom backends (#8230)
Co-authored-by: Andreas Reich <r_andreas2@web.de>
This commit is contained in:
1 parent
1072b87894
commit
4652ea4189
12 files changed
+86
-33
No files matched your search
@@ -203,7 +203,7 @@ pub(crate) async fn get_adapter_with_capabilities_or_from_env(
|
||||
);
|
||||
adapter
|
||||
} else {
|
||||
let adapters = instance.enumerate_adapters(Backends::all());
|
||||
let adapters = instance.enumerate_adapters(Backends::all()).await;
|
||||
|
||||
let mut chosen_adapter = None;
|
||||
for adapter in adapters {
|
||||
|
||||
@@ -55,6 +55,13 @@ impl InstanceInterface for CustomInstance {
|
||||
fn wgsl_language_features(&self) -> wgpu::WgslLanguageFeatures {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
fn enumerate_adapters(
|
||||
&self,
|
||||
_backends: wgpu::Backends,
|
||||
) -> Pin<Box<dyn wgpu::custom::EnumerateAdapterFuture>> {
|
||||
unimplemented!()
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
|
||||
Reference in new issue
Block a user