mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-28 09:09:19 +01:00
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:
1 parent
afcb157272
commit
2d01c07988
1 file changed
+5
-3
+5
-3
@@ -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]
|
||||
|
||||
Reference in new issue
Block a user