Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bunnymark example does not recompute its projection matrix and other parameters when the canvas size changes #5890

Open
mwyrzykowski opened this issue Jun 28, 2024 · 0 comments
Labels
good first issue Good for newcomers type: bug Something isn't working

Comments

@mwyrzykowski
Copy link

Description
examples/src/bunnymark/mod.rs computes an Orthographic RH matrix on page load, but if the canvas is resized, the matrix is not recomputed.

See all uses of config.width and config.height inside examples/src/bunnymark/mod.rs

Repro steps
(1) Open https://wgpu.rs/examples/?backend=webgpu&example=bunnymark in Chrome 126.0.6478.127
(2) Resize the window

Expected vs observed behavior
Observed: Bunnies bounce outside of the canvas or don't bounce to the top

Expected: bunnies bounce within the resized canvas

Extra materials

bunnies_outside_canvas.mov

Platform
macOS using Chrome Version 128.0.6562.0 (Official Build) canary (arm64)

@Wumpf Wumpf added type: bug Something isn't working good first issue Good for newcomers labels Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants