fix(ext/webgpu): allow to build on unsupported platforms (#25202)

This commit is contained in:
cions 2024-08-25 22:59:11 +09:00 committed by Luca Casonato
parent ac341d4aba
commit 7eaa395113
No known key found for this signature in database
GPG Key ID: 01A83EB62563811F

View File

@ -148,3 +148,18 @@ fn raw_window(
Ok((win_handle, display_handle))
}
#[cfg(not(any(
target_os = "macos",
target_os = "windows",
target_os = "linux",
target_os = "freebsd",
target_os = "openbsd",
)))]
fn raw_window(
_system: &str,
_window: *const c_void,
_display: *const c_void,
) -> Result<RawHandles, AnyError> {
Err(type_error("Unsupported platform"))
}