mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-25 08:13:27 +00:00
23 lines
647 B
Rust
23 lines
647 B
Rust
fn main() {
|
|
// Setup cfg aliases
|
|
cfg_aliases::cfg_aliases! {
|
|
// Vendors/systems
|
|
wasm: { target_arch = "wasm32" },
|
|
apple: { any(target_os = "ios", target_os = "macos") },
|
|
unix_wo_apple: {all(unix, not(apple))},
|
|
|
|
// Backends
|
|
vulkan: { all(not(wasm), any(windows, unix_wo_apple, feature = "vulkan-portability")) },
|
|
metal: { all(not(wasm), apple) },
|
|
dx12: { all(not(wasm), windows) },
|
|
dx11: { all(not(wasm), windows) },
|
|
gl: {
|
|
any(
|
|
unix_wo_apple,
|
|
feature = "angle",
|
|
wasm
|
|
)
|
|
},
|
|
}
|
|
}
|