824: make all labels use `wgpu::Label` r=kvark a=LU15W1R7H
This PR does a very minor change.
It replaces all occurences of `label: Option<'a str>` with `label: crate::Label`,
making the usage consistent all across the API.
This doesn't bring any benefit other than consistency.
I hope to have catched every occurance.
Co-authored-by: Luis Wirth <lwirth2000@gmail.com>
1291: Add color blend modes r=kvark a=cwfitzgerald
Continuation of #1289, because apparently you can't re-open an accidentally closed pull request if you force pushed...
Should be GTG.
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
823: Fix crash-on-resize in skybox example r=kvark a=danwilhelm
Problem: Skybox example currently crashes on resize.
- Solution: Now, recreates depth texture on resize event.
---
Problem: Shadow example currently duplicates texture creation code on resize.
- Solution: Now, shadow is refactored identically to skybox & water examples -- minimizes code duplication, makes examples more similar.
Co-authored-by: Dan Wilhelm <dan@danwilhelm.com>
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>
814: Update to latest wgpu, naga, gfx. r=kvark a=Gordon-F
Update to latest wgpu, naga, gfx and enable `EXPERIMENTAL_TRANSLATION` with GL backend for `boids`, `cube` and `hello-compute`.
Co-authored-by: Gordon-F <ishaposhnik@icloud.com>
813: Fix dropping for command encoders r=grovesNL a=kvark
We weren't dropping them properly, and since the ID is just an obfuscated `Box<RealStuff>` that made the contents leak.
Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
1281: Rename `level_count` to `mip_level_count` r=kvark a=grovesNL
**Description**
This PR renames `level_count` to `mip_level_count` on `TextureViewDescriptor`. This follows the naming in the specification, located at https://gpuweb.github.io/gpuweb/#texture-view-creation
**Testing**
`cargo build` and `cargo test` only, naming changes will be made downstream in wgpu-rs too.
Co-authored-by: Joshua Groves <josh@joshgroves.com>