Skip to content

Infinite resize on WASM - Learn WGPU #7938

@sotrh

Description

@sotrh

Description
2 major issues after porting my tutorial Learn Wgpu on Windows.

On native the rendering flickers violently (Seizure warning for the video below).

https://youtu.be/5gZSqfsEloI

On web the viewport is expanding infinitely causing a Vulkan validation error and a crash.

Image

Repro steps
https://github.com/sotrh/learn-wgpu/tree/26.0

For native cargo r -p tutorial13-hdr
For web yarn dev

Expected vs observed behavior
I expect rendering to not flicker and the web canvas to not resize infinitely

Extra materials

Platform
Windows 11
rustc 1.88.0 (6b00bc388 2025-06-23)
wgpu 26.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions