changed websys features in core and hal to align with used features (#2922)

Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
This commit is contained in:
Seamooo
2022-08-02 03:06:26 +08:00
committed by GitHub
parent 4cbf8cfcf1
commit 0dce58dfbd
3 changed files with 5 additions and 2 deletions

View File

@@ -60,6 +60,7 @@ the same every time it is rendered, we now warn if it is missing.
#### General
- Improve the validation and error reporting of buffer mappings by @nical in [#2848](https://github.com/gfx-rs/wgpu/pull/2848)
- Fix compilation errors when using wgpu-core in isolation while targetting `wasm32-unknown-unknown` by @Seamooo in [#2922](https://github.com/gfx-rs/wgpu/pull/2922)
- Fixed opening of RenderDoc library by @abuffseagull in [#2930](https://github.com/gfx-rs/wgpu/pull/2930)
### Changes

View File

@@ -56,9 +56,11 @@ path = "../wgpu-hal"
package = "wgpu-hal"
version = "0.13"
[target.'cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))'.dependencies]
web-sys = { version = "0.3", features = ["HtmlCanvasElement", "OffscreenCanvas"] }
[target.'cfg(target_arch = "wasm32")'.dependencies]
hal = { path = "../wgpu-hal", package = "wgpu-hal", version = "0.13", features = ["gles"] }
web-sys = { version = "0.3", features = ["HtmlCanvasElement"] }
[target.'cfg(all(not(target_arch = "wasm32"), any(target_os = "ios", target_os = "macos")))'.dependencies]
hal = { path = "../wgpu-hal", package = "wgpu-hal", version = "0.13", features = ["metal"] }

View File

@@ -88,7 +88,7 @@ core-graphics-types = "0.1"
[target.'cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))'.dependencies]
wasm-bindgen = { version = "0.2" }
web-sys = { version = "0.3", features = ["Window", "HtmlCanvasElement", "WebGl2RenderingContext"] }
web-sys = { version = "0.3", features = ["Window", "HtmlCanvasElement", "WebGl2RenderingContext", "OffscreenCanvas"] }
js-sys = { version = "0.3" }
[target.'cfg(target_os = "android")'.dependencies]