summaryrefslogtreecommitdiff
path: root/ext/webgpu
diff options
context:
space:
mode:
Diffstat (limited to 'ext/webgpu')
-rw-r--r--ext/webgpu/byow.rs15
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"))
+}