Skip to content

Commit b99da84

Browse files
madsmtmErichDonGubler
authored andcommitted
[metal] Use raw-window-metal to do layer creation
This removes the manual implementation introduced in 7b00140.
1 parent d2f8c44 commit b99da84

File tree

8 files changed

+135
-319
lines changed

8 files changed

+135
-319
lines changed

.deny.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ skip-tree = [
1313
{ name = "bit-set", version = "0.5.3" },
1414
{ name = "bit-vec", version = "0.6.3" },
1515
{ name = "capacity_builder", version = "0.1.3" },
16+
17+
# Winit 0.30 uses an older objc2
18+
{ name = "objc2-foundation", version = "0.2" },
1619
]
1720
skip = [
1821
# Flume uses an old version

Cargo.lock

Lines changed: 85 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
@@ -198,6 +198,7 @@ metal = "0.32"
198198
block = "0.1.6"
199199
core-graphics-types = "0.2"
200200
objc = "0.2.5"
201+
raw-window-metal = "1.0"
201202

202203
# Vulkan dependencies
203204
android_system_properties = "0.1.1"

wgpu-hal/Cargo.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ unexpected_cfgs = { level = "warn", check-cfg = [
5959
# exclude the Vulkan backend on MacOS unless a separate feature `vulkan-portability` is enabled. In response
6060
# to these features, it enables features of platform specific crates. For example, the `vulkan` feature in wgpu-core
6161
# enables the `vulkan` feature in `wgpu-core-deps-windows-linux-android` which in turn enables the
62-
# `vulkan` feature in `wgpu-hal` _only_ on those platforms. If you enable the `vulkan-portability` feature, it
62+
# `vulkan` feature in `wgpu-hal` _only_ on those platforms. If you enable the `vulkan-portability` feature, it
6363
# will enable the `vulkan` feature in `wgpu-core-deps-apple`. The only way to do this is unfortunately to have
6464
# a separate crate for each platform category that participates in the feature unification.
6565
#
@@ -83,6 +83,7 @@ metal = [
8383
"dep:objc",
8484
"dep:parking_lot",
8585
"dep:profiling",
86+
"dep:raw-window-metal",
8687
]
8788
vulkan = [
8889
"naga/spv-out",
@@ -99,6 +100,7 @@ vulkan = [
99100
"dep:ordered-float",
100101
"dep:parking_lot",
101102
"dep:profiling",
103+
"dep:raw-window-metal",
102104
"dep:smallvec",
103105
"dep:windows",
104106
"windows/Win32",
@@ -279,6 +281,9 @@ core-graphics-types = { workspace = true, optional = true }
279281
metal = { workspace = true, optional = true }
280282
objc = { workspace = true, optional = true }
281283

284+
# backend: Metal + Vulkan
285+
raw-window-metal = { workspace = true, optional = true }
286+
282287
#########################
283288
### Platform: Android ###
284289
#########################

0 commit comments

Comments
 (0)