From 2d01c07988d921decd297048225d2388bdf94cc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A2ris=20DOUADY?= Date: Tue, 23 Mar 2021 18:01:01 +0100 Subject: [PATCH] Passthrough cross feature to wgpu-core (#810) * Passthrough cross feature to wgpu-core Hopefully it can even be removed when `naga` is more mature. :-) * remove unconditional cross for wgc --- Cargo.toml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 616f1a13e..992cc1e3b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,24 +16,26 @@ all-features = true [lib] [features] -default = [] +default = ["cross"] trace = ["serde", "wgc/trace"] replay = ["serde", "wgc/replay"] # Make Vulkan backend available on platforms where it is by default not, e.g. macOS vulkan-portability = ["wgc/gfx-backend-vulkan"] webgl = ["wgc"] +# Enable SPIRV-Cross +cross = ["wgc/cross"] [target.'cfg(not(target_arch = "wasm32"))'.dependencies.wgc] package = "wgpu-core" git = "https://github.com/gfx-rs/wgpu" rev = "c831c5512ac528775d983c747b78535cc585b9e0" -features = ["raw-window-handle", "cross"] +features = ["raw-window-handle"] [target.'cfg(target_arch = "wasm32")'.dependencies.wgc] package = "wgpu-core" git = "https://github.com/gfx-rs/wgpu" rev = "c831c5512ac528775d983c747b78535cc585b9e0" -features = ["raw-window-handle", "cross"] +features = ["raw-window-handle"] optional = true [dependencies.wgt]