Skip to content

Commit 999372c

Browse files
committed
Address review
1 parent a16a143 commit 999372c

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

wgpu/Cargo.toml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,6 @@ glsl = ["naga/glsl-in"]
3333
wgsl = ["wgc?/wgsl"]
3434
trace = ["serde", "wgc/trace"]
3535
replay = ["serde", "wgc/replay"]
36-
# Enables the GLES backend on Windows & macOS
37-
angle = ["wgc/gles"]
38-
webgl = ["hal", "wgc/gles"]
39-
# Enables the Vulkan backend on macOS & iOS
40-
vulkan-portability = ["wgc/vulkan"]
4136
expose-ids = []
4237
# Implement `Send` and `Sync` on Wasm.
4338
fragile-send-sync-non-atomic-wasm = [
@@ -48,9 +43,18 @@ fragile-send-sync-non-atomic-wasm = [
4843
# Log all API entry points at info instead of trace level.
4944
api_log_info = ["wgc/api_log_info"]
5045
# Backends
46+
# Enables the DX11 backend on Windows
5147
dx11 = ["wgc?/dx11"]
48+
# Enables the DX12 backend on Windows
5249
dx12 = ["wgc?/dx12"]
50+
# Enables the Metal backend on macOS & iOS
5351
metal = ["wgc?/metal"]
52+
# Enables the GLES backend on Windows & macOS
53+
angle = ["wgc?/gles"]
54+
# Enables the Vulkan backend on macOS & iOS
55+
vulkan-portability = ["wgc?/vulkan"]
56+
# Enables the GLES backend on Wasm (currently will also enable GLES dependencies on any other target)
57+
webgl = ["hal", "wgc/gles"]
5458

5559
# wgpu-core is always available as an optional dependency, "wgc".
5660
# Whenever wgpu-core is selected, we want raw window handle support.
@@ -65,7 +69,8 @@ features = ["raw-window-handle"]
6569
workspace = true
6670
features = ["raw-window-handle"]
6771

68-
# We want the wgpu-core Metal backend on macOS and iOS.
72+
# Enable `wgc` by default on macOS and iOS to allow the `metal` crate feature to
73+
# enable the Metal backend while being no-op on other targets.
6974
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.wgc]
7075
workspace = true
7176

0 commit comments

Comments
 (0)