mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-22 14:55:05 +00:00
Expose Global::enumerate_adapters
.
This commit is contained in:
parent
153c7f3f08
commit
498176a8a0
@ -143,6 +143,10 @@ pub extern "C" fn wgpu_create_surface_from_windows_hwnd(
|
||||
))
|
||||
}
|
||||
|
||||
pub fn wgpu_enumerate_adapters(mask: core::instance::BackendBit) -> Vec<id::AdapterId> {
|
||||
GLOBAL.enumerate_adapters(core::instance::AdapterInputs::Mask(mask, || PhantomData))
|
||||
}
|
||||
|
||||
/// # Safety
|
||||
///
|
||||
/// This function is unsafe as it calls an unsafe extern callback.
|
||||
|
Loading…
Reference in New Issue
Block a user