mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-22 14:55:05 +00:00
21 lines
752 B
Rust
21 lines
752 B
Rust
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
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 = "gfx-backend-vulkan")) },
|
|
metal: { all(not(wasm), apple) },
|
|
dx12: { all(not(wasm), windows) },
|
|
dx11: { all(not(wasm), windows) },
|
|
gl: { any(wasm, unix_wo_apple) },
|
|
}
|
|
}
|