Skip to content

Commit 5481089

Browse files
committed
Add visionos support
1 parent c22c062 commit 5481089

File tree

24 files changed

+32
-31
lines changed

24 files changed

+32
-31
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ By @ErichDonGubler in [#6456](https://github.com/gfx-rs/wgpu/pull/6456), [#6148]
105105

106106
- Return submission index in `map_async` and `on_submitted_work_done` to track down completion of async callbacks. By @eliemichel in [#6360](https://github.com/gfx-rs/wgpu/pull/6360).
107107
- Move raytracing alignments into HAL instead of in core. By @Vecvec in [#6563](https://github.com/gfx-rs/wgpu/pull/6563).
108+
- Add build support for Apple Vision Pro. By @guusw in [#6611](https://github.com/gfx-rs/wgpu/pull/6611).
108109

109110
### Changes
110111

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
}

0 commit comments

Comments
 (0)