873: Boids example: cleaner rand code r=kvark a=dhardy
... for a certain definition of cleaner. Is this clearer or just more confusing?
Co-authored-by: Diggory Hardy <git@dhardy.name>
861: Remove glslangvalidator requirements from water example r=kvark a=Gordon-F
`glslangvalidator` is no longer needed because the example uses WGSL.
Co-authored-by: Igor Shaposhnik <Gordon-F@users.noreply.github.com>
859: Fix typos - it's -> its r=cwfitzgerald a=ashpil
As I was reading the documentation, I found an instance where "it's" should actually be "its", as it is used as a possessive, not a contraction. I fixed that and `grep`ed for other instances, of which I found one and fixed as well.
Co-authored-by: ashpil <shpilenok2001@gmail.com>
855: Remove comment about `Vec::remove_item` r=kvark a=Pat-Lafon
Sadly, `Vec::remove_item` was an unstable method that was deprecated and has now been removed.
https://github.com/rust-lang/rust/pull/80972
This pr removes a comment suggesting to use `Vec::remove_item` when it stabilizes.
Co-authored-by: Patrick LaFontaine <32135464+Pat-Lafon@users.noreply.github.com>
847: Don't pin web-sys and wasm-bindgen versions r=grovesNL a=RichoDemus
Pinning them forces all downstream dependencies to use exactly this version
The latest release of wgpu has pinned an old version of wasm-bindgen, forcing users to downgrade wasm-bindgen-cli in order to build
Co-authored-by: Richard Tjerngren <git@richodemus.com>
Co-authored-by: RichoDemus <git@richodemus.com>
Pinning them forces all downstream dependencies to use exactly this version
The latest release of wgpu has pinned an old version of wasm-bindgen, forcing users to downgrade wasm-bindgen-cli in order to build
827: Fixed water example file section in the README.md r=cwfitzgerald a=Dy11on
Fixed the file section in the README.md for the water example, since it now uses wgsl
Co-authored-by: Dy11on <26803229+Dy11on@users.noreply.github.com>
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>
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>