mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-22 07:21:04 +01:00
The purpose of the PR is to support Naga modules everywhere. As a requirement, it updates the gfx-rs version used. Most of the logic is dedicated towards building a shader interface, where previously we just used naga's IR. Now we have our own mini-IR.
19 lines
603 B
Rust
19 lines
603 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
|
|
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: { all(unix, not(apple)) },
|
|
}
|
|
}
|