Debian Codegraph @

third_party/rust/wgpu-core/build.rs

raw
1 fn main() {
2 cfg_aliases::cfg_aliases! {
3 windows_linux_android: { any(windows, target_os = "linux", target_os = "android") },
4 send_sync: { all(
5 feature = "std",
6 any(
7 not(target_arch = "wasm32"),
8 all(feature = "fragile-send-sync-non-atomic-wasm", not(target_feature = "atomics"))
9 )
10 ) },
11 dx12: { all(target_os = "windows", feature = "dx12") },
12 webgl: { all(target_arch = "wasm32", not(target_os = "emscripten"), feature = "webgl") },
13 gles: { any(
14 all(windows_linux_android, feature = "gles"), // Regular GLES
15 all(webgl), // WebGL
16 all(target_os = "emscripten", feature = "gles"), // Emscripten GLES
17 all(target_vendor = "apple", feature = "angle") // ANGLE on Apple
18 ) },
19 vulkan: { any(
20 all(windows_linux_android, feature = "vulkan"), // Regular Vulkan
21 all(target_vendor = "apple", feature = "vulkan-portability") // Vulkan Portability on Apple
22 ) },
23 metal: { all(target_vendor = "apple", feature = "metal") },
24
25 supports_64bit_atomics: { target_has_atomic = "64" }
26 }
27 }