Skip to content

Commit 30cebd4

Browse files
committed
Add visionos support
1 parent c22c062 commit 30cebd4

File tree

23 files changed

+31
-31
lines changed

23 files changed

+31
-31
lines changed

deno_webgpu/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ features = [
3535
]
3636

3737
# We want the wgpu-core Metal backend on macOS and iOS.
38-
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.wgpu-core]
38+
[target.'cfg(any(target_os = "macos", target_os = "ios", target_os = "visionos"))'.dependencies.wgpu-core]
3939
workspace = true
4040
features = ["metal"]
4141

naga/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ fn main() {
33
dot_out: { feature = "dot-out" },
44
glsl_out: { feature = "glsl-out" },
55
hlsl_out: { any(feature = "hlsl-out", all(target_os = "windows", feature = "hlsl-out-if-target-windows")) },
6-
msl_out: { any(feature = "msl-out", all(any(target_os = "ios", target_os = "macos"), feature = "msl-out-if-target-apple")) },
6+
msl_out: { any(feature = "msl-out", all(any(target_os = "ios", target_os = "visionos", target_os = "macos"), feature = "msl-out-if-target-apple")) },
77
spv_out: { feature = "spv-out" },
88
wgsl_out: { feature = "wgsl-out" },
99
}

naga/fuzz/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ license = "MIT OR Apache-2.0"
99
[package.metadata]
1010
cargo-fuzz = true
1111

12-
[target.'cfg(not(any(target_arch = "wasm32", target_os = "ios")))'.dependencies]
12+
[target.'cfg(not(any(target_arch = "wasm32", target_os = "ios", target_os = "visionos")))'.dependencies]
1313
arbitrary = { version = "1.3.2", features = ["derive"] }
1414
libfuzzer-sys = "0.4"
1515

16-
[target.'cfg(not(any(target_arch = "wasm32", target_os = "ios")))'.dependencies.naga]
16+
[target.'cfg(not(any(target_arch = "wasm32", target_os = "ios", target_os = "visionos")))'.dependencies.naga]
1717
path = ".."
1818
version = "23.0.0"
1919
features = ["arbitrary", "spv-in", "wgsl-in", "glsl-in"]

naga/fuzz/fuzz_targets/glsl_parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![no_main]
2-
#[cfg(not(any(target_arch = "wasm32", target_os = "ios")))]
2+
#[cfg(not(any(target_arch = "wasm32", target_os = "ios", target_os = "visionos")))]
33
mod fuzz {
44
use arbitrary::Arbitrary;
55
use libfuzzer_sys::fuzz_target;

naga/fuzz/fuzz_targets/ir.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![no_main]
2-
#[cfg(not(any(target_arch = "wasm32", target_os = "ios")))]
2+
#[cfg(not(any(target_arch = "wasm32", target_os = "ios", target_os = "visionos")))]
33
mod fuzz {
44
use libfuzzer_sys::fuzz_target;
55

naga/fuzz/fuzz_targets/spv_parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![no_main]
2-
#[cfg(not(any(target_arch = "wasm32", target_os = "ios")))]
2+
#[cfg(not(any(target_arch = "wasm32", target_os = "ios", target_os = "visionos")))]
33
mod fuzz {
44
use libfuzzer_sys::fuzz_target;
55
use naga::front::spv::{Frontend, Options};

naga/fuzz/fuzz_targets/wgsl_parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![no_main]
2-
#[cfg(not(any(target_arch = "wasm32", target_os = "ios")))]
2+
#[cfg(not(any(target_arch = "wasm32", target_os = "ios", target_os = "visionos")))]
33
mod fuzz {
44
use libfuzzer_sys::fuzz_target;
55
use naga::front::wgsl::Frontend;

naga/xtask/src/validate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ fn collect_validation_jobs(jobs: &mut Vec<Job>, cmd: ValidateSubcommand) -> anyh
150150
| ValidateSubcommand::Spirv
151151
| ValidateSubcommand::Glsl
152152
| ValidateSubcommand::Dot => true,
153-
ValidateSubcommand::Metal => cfg!(any(target_os = "macos", target_os = "ios")),
153+
ValidateSubcommand::Metal => cfg!(any(target_os = "macos", target_os = "ios", target_os = "visionos")),
154154
// The FXC compiler is only available on Windows.
155155
//
156156
// The DXC compiler can be built and run on any platform,

wgpu-core/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ fn main() {
77
webgl: { all(target_arch = "wasm32", not(target_os = "emscripten"), gles) },
88
dx12: { all(target_os = "windows", feature = "dx12") },
99
gles: { all(feature = "gles") },
10-
metal: { all(any(target_os = "ios", target_os = "macos"), feature = "metal") },
10+
metal: { all(any(target_os = "ios", target_os = "visionos", target_os = "macos"), feature = "metal") },
1111
vulkan: { all(not(target_arch = "wasm32"), feature = "vulkan") }
1212
}
1313
}

wgpu-core/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#![cfg_attr(
1111
all(
1212
not(all(feature = "vulkan", not(target_arch = "wasm32"))),
13-
not(all(feature = "metal", any(target_os = "macos", target_os = "ios"))),
13+
not(all(feature = "metal", any(target_os = "macos", target_os = "ios", target_os = "visionos"))),
1414
not(all(feature = "dx12", windows)),
1515
not(feature = "gles"),
1616
),

0 commit comments

Comments
 (0)