mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
819: Boost texels alpha channel in cube example. r=kvark a=VincentFTS Permits to have a good rendering for WebGL. 822: Update wasm-bindgen and web-sys to latest r=kvark a=grovesNL #821 for `master` On `master` it should be ok to update wasm-bindgen and web-sys, so we don't need to fix syn's version Co-authored-by: VincentFTS <platforms@ftsoftware.fr> Co-authored-by: Joshua Groves <josh@joshgroves.com>
This commit is contained in:
2
.github/workflows/publish.yml
vendored
2
.github/workflows/publish.yml
vendored
@@ -28,7 +28,7 @@ jobs:
|
||||
run: cargo build --release --target wasm32-unknown-unknown --examples
|
||||
|
||||
- name: Install wasm-bindgen-cli
|
||||
run: cargo install --force wasm-bindgen-cli --version 0.2.72
|
||||
run: cargo install --force wasm-bindgen-cli --version 0.2.73
|
||||
|
||||
- name: Generate JS bindings for the examples
|
||||
run: |
|
||||
|
||||
@@ -115,8 +115,8 @@ test = true
|
||||
#wasm-bindgen = { path = "../wasm-bindgen" }
|
||||
|
||||
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
||||
wasm-bindgen = "=0.2.72" # remember to change version in wiki as well
|
||||
web-sys = { version = "=0.3.49", features = [
|
||||
wasm-bindgen = "=0.2.73" # remember to change version in wiki as well
|
||||
web-sys = { version = "=0.3.50", features = [
|
||||
"Document",
|
||||
"Navigator",
|
||||
"Node",
|
||||
@@ -241,8 +241,8 @@ web-sys = { version = "=0.3.49", features = [
|
||||
"HtmlCanvasElement",
|
||||
"Window",
|
||||
]}
|
||||
js-sys = "0.3.49"
|
||||
wasm-bindgen-futures = "0.4.22"
|
||||
js-sys = "0.3.50"
|
||||
wasm-bindgen-futures = "0.4.23"
|
||||
|
||||
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
|
||||
console_error_panic_hook = "0.1.6"
|
||||
|
||||
@@ -81,7 +81,7 @@ fn create_texels(size: usize) -> Vec<u8> {
|
||||
iter::once(0xFF - (count * 5) as u8)
|
||||
.chain(iter::once(0xFF - (count * 15) as u8))
|
||||
.chain(iter::once(0xFF - (count * 50) as u8))
|
||||
.chain(iter::once(1))
|
||||
.chain(iter::once(0xFF))
|
||||
})
|
||||
.collect()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user