Skip to content
Open
Show file tree
Hide file tree
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
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,13 @@ jobs:
tier: 2
kind: wgpu-only

# NetBSD
- name: NetBSD x86_64
os: ubuntu-24.04
target: x86_64-unknown-netbsd
tier: 2
kind: wgpu-only

# Android
- name: Android aarch64
os: ubuntu-24.04
Expand Down
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