mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-22 14:55:05 +00:00
21 lines
651 B
Rust
21 lines
651 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
|
|
ios: { target_os = "ios" },
|
|
macos: { target_os = "macos" },
|
|
apple: { any(ios, macos) },
|
|
|
|
// Backends
|
|
vulkan: { any(windows, all(unix, not(apple)), feature = "gfx-backend-vulkan") },
|
|
metal: { apple },
|
|
dx12: { windows },
|
|
dx11: { windows },
|
|
gl: { all(unix, not(apple)) },
|
|
}
|
|
}
|