Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion deno_webgpu/byow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use std::ffi::c_void;
target_os = "linux",
target_os = "macos",
target_os = "freebsd",
target_os = "netbsd",
target_os = "openbsd"
))]
use std::ptr::NonNull;
Expand All @@ -29,6 +30,7 @@ pub enum ByowError {
target_os = "windows",
target_os = "linux",
target_os = "freebsd",
target_os = "netbsd",
target_os = "openbsd",
)))]
#[class(type)]
Expand Down Expand Up @@ -56,6 +58,7 @@ pub enum ByowError {
#[cfg(any(
target_os = "linux",
target_os = "freebsd",
target_os = "netbsd",
target_os = "openbsd"
))]
#[class(type)]
Expand All @@ -65,6 +68,7 @@ pub enum ByowError {
target_os = "windows",
target_os = "linux",
target_os = "freebsd",
target_os = "netbsd",
target_os = "openbsd"
))]
#[class(type)]
Expand All @@ -73,6 +77,7 @@ pub enum ByowError {
#[cfg(any(
target_os = "linux",
target_os = "freebsd",
target_os = "netbsd",
target_os = "openbsd"
))]
#[class(type)]
Expand Down Expand Up @@ -322,7 +327,12 @@ fn raw_window(
Ok((win_handle, display_handle))
}

#[cfg(any(target_os = "linux", target_os = "freebsd", target_os = "openbsd"))]
#[cfg(any(
target_os = "linux",
target_os = "freebsd",
target_os = "netbsd",
target_os = "openbsd"
))]
fn raw_window(
system: UnsafeWindowSurfaceSystem,
window: *const c_void,
Expand Down Expand Up @@ -364,6 +374,7 @@ fn raw_window(
target_os = "windows",
target_os = "linux",
target_os = "freebsd",
target_os = "netbsd",
target_os = "openbsd",
)))]
fn raw_window(
Expand Down
Loading