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
This commit is contained in:
Pâris DOUADY authored and GitHub committed 2021-03-23 13:01:01 -04:00
1 parent afcb157272
commit 2d01c07988
1 file changed
+5 -3
+5 -3
View File
@@ -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]