@@ -44,6 +44,9 @@ metal = [
44
44
# Metal is only available on Apple platforms, therefore request MSL output also only if we target an Apple platform.
45
45
" naga/msl-out-if-target-apple" ,
46
46
" dep:block" ,
47
+ " dep:core-graphics-types" ,
48
+ " dep:metal" ,
49
+ " dep:objc" ,
47
50
" dep:raw-window-metal" ,
48
51
]
49
52
vulkan = [
@@ -52,9 +55,9 @@ vulkan = [
52
55
" dep:gpu-alloc" ,
53
56
" dep:gpu-descriptor" ,
54
57
" dep:libloading" ,
58
+ " dep:raw-window-metal" ,
55
59
" dep:smallvec" ,
56
60
" dep:android_system_properties" ,
57
- " dep:raw-window-metal" ,
58
61
]
59
62
gles = [
60
63
" naga/glsl-out" ,
@@ -63,6 +66,7 @@ gles = [
63
66
" dep:khronos-egl" ,
64
67
" dep:libloading" ,
65
68
" dep:ndk-sys" ,
69
+ " dep:objc" ,
66
70
" windows/Win32_Graphics_OpenGL" ,
67
71
" windows/Win32_Graphics_Gdi" ,
68
72
" windows/Win32_System_LibraryLoader" ,
@@ -167,14 +171,15 @@ glutin_wgl_sys = { workspace = true, optional = true }
167
171
[target .'cfg(any(target_os="macos", target_os="ios"))' .dependencies ]
168
172
# backend: Metal
169
173
block = { workspace = true , optional = true }
174
+ metal = { workspace = true , optional = true }
175
+ core-graphics-types = { workspace = true , optional = true }
176
+
177
+ # backend: Metal + GLES
178
+ objc = { workspace = true , optional = true }
170
179
171
180
# backend: Metal + Vulkan
172
181
raw-window-metal = { workspace = true , optional = true }
173
182
174
- metal.workspace = true
175
- objc.workspace = true
176
- core-graphics-types.workspace = true
177
-
178
183
[target .'cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))' .dependencies ]
179
184
wasm-bindgen.workspace = true
180
185
web-sys = { workspace = true , features = [
0 commit comments