mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-29 18:23:36 +00:00
15 lines
380 B
Rust
15 lines
380 B
Rust
|
fn main() {
|
||
|
// Setup cfg aliases
|
||
|
cfg_aliases::cfg_aliases! {
|
||
|
// Vendors/systems
|
||
|
apple: { any(target_os = "ios", target_os = "macos") },
|
||
|
|
||
|
// Backends
|
||
|
vulkan: { any(windows, all(unix, not(apple)), feature = "gfx-backend-vulkan") },
|
||
|
metal: { apple },
|
||
|
dx12: { windows },
|
||
|
dx11: { windows },
|
||
|
gl: { unix },
|
||
|
}
|
||
|
}
|