diff options
author | cions <gh.cions@gmail.com> | 2024-08-25 22:59:11 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-25 19:29:11 +0530 |
commit | aebe8947ae602d22734498b1ef3a771afe7a9adc (patch) | |
tree | 137b5fe8b1fa0fcd37cf649dde0918ebd66cf77a /ext/webgpu/byow.rs | |
parent | b0ea6e0dc77542b6f10e856ae3c10a8cb13d7351 (diff) |
fix(ext/webgpu): allow to build on unsupported platforms (#25202)
Diffstat (limited to 'ext/webgpu/byow.rs')
-rw-r--r-- | ext/webgpu/byow.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ext/webgpu/byow.rs b/ext/webgpu/byow.rs index fa3ce2d96..3a43f416e 100644 --- a/ext/webgpu/byow.rs +++ b/ext/webgpu/byow.rs @@ -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")) +} |