Skip to content

Commit f084091

Browse files
committed
[metal] Use raw-window-metal to do layer creation
This removes the manual implementation introduced in 7b00140.
1 parent 6560412 commit f084091

File tree

8 files changed

+146
-319
lines changed

8 files changed

+146
-319
lines changed

.deny.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ skip-tree = [
77

88
# introduced by Deno, to be investigated
99
{ name = "petgraph", version = "0.6.5" },
10+
11+
# Winit 0.30 uses an older objc2
12+
{ name = "objc2-foundation", version = "0.2" },
1013
]
1114
skip = [
1215
# Flume uses an old version

Cargo.lock

Lines changed: 96 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ metal = "0.32"
204204
block = "0.1.6"
205205
core-graphics-types = "0.2"
206206
objc = "0.2.5"
207+
raw-window-metal = "1.0"
207208

208209
# Vulkan dependencies
209210
android_system_properties = "0.1.1"

wgpu-hal/Cargo.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ unexpected_cfgs = { level = "warn", check-cfg = [
6060
# exclude the Vulkan backend on MacOS unless a separate feature `vulkan-portability` is enabled. In response
6161
# to these features, it enables features of platform specific crates. For example, the `vulkan` feature in wgpu-core
6262
# enables the `vulkan` feature in `wgpu-core-deps-windows-linux-android` which in turn enables the
63-
# `vulkan` feature in `wgpu-hal` _only_ on those platforms. If you enable the `vulkan-portability` feature, it
63+
# `vulkan` feature in `wgpu-hal` _only_ on those platforms. If you enable the `vulkan-portability` feature, it
6464
# will enable the `vulkan` feature in `wgpu-core-deps-apple`. The only way to do this is unfortunately to have
6565
# a separate crate for each platform category that participates in the feature unification.
6666
#
@@ -85,6 +85,7 @@ metal = [
8585
"dep:parking_lot",
8686
"dep:profiling",
8787
"dep:smallvec",
88+
"dep:raw-window-metal",
8889
]
8990
vulkan = [
9091
"naga/spv-out",
@@ -101,6 +102,7 @@ vulkan = [
101102
"dep:ordered-float",
102103
"dep:parking_lot",
103104
"dep:profiling",
105+
"dep:raw-window-metal",
104106
"dep:smallvec",
105107
"dep:windows",
106108
"windows/Win32",
@@ -276,6 +278,9 @@ core-graphics-types = { workspace = true, optional = true }
276278
metal = { workspace = true, optional = true }
277279
objc = { workspace = true, optional = true }
278280

281+
# backend: Metal + Vulkan
282+
raw-window-metal = { workspace = true, optional = true }
283+
279284
#########################
280285
### Platform: Android ###
281286
#########################

0 commit comments

Comments
 (0)