wgpu
wgpu copied to clipboard
fix: 5890 set upper bound for vertical jump
Connections #5890
Description Its adding bounds to the vertical jump on bunnymark example. It will also update size of the surface on resize.
Testing
-
cargo xtask run-wasm
- go to
http://localhost:8000/?backend=webgpu&example=bunnymark
- The bunnies should not jump out of the vertical bounds and should resize when the screen size changes.
Checklist
- [x] Run
cargo fmt
. - [x] Run
cargo clippy
. If applicable, add:- [x]
--target wasm32-unknown-unknown
- [x]
--target wasm32-unknown-emscripten
- [x]
- [x] Run
cargo xtask test
to run tests. - [ ] Add change to
CHANGELOG.md
. See simple instructions inside file.