wgpu crashes on Redmi k60pro mobile phone due to too high of resolution
- Dominant language
- Rust
- Stars
- 48.2k
- Forks
- 4.8k
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 161
Description
https://bevyengine.org/examples/3d-rendering/3d-scene/
This is my actual machine demonstration. Please tell me how to solve it. I also want to write a demo that can be displayed on mobile phones.
```
wasm_example.js:1885 panicked at /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.20.1/src/backend/wgpu_core.rs:751:18:
Error in Surface::configure: Validation Error
Caused by:
`Surface` width and height must be within the maximum supported texture size. Requested was (4480, 2520), maximum extent for either dimension is 4096.
Stack:
Error
at imports.wbg.__wbg_new_abda76e883ba8a5f (https://bevy-webgl2-examples.pages.dev/3D%20Rendering/3d-scene/wasm_example.js:1869:21)
at https://bevy-webgl2-examples.pages.dev/3D%20Rendering/3d-scene/wasm_example_bg.wasm:wasm-function[53132]:0x125c108
at https://bevy-webgl2-examples.pages.dev/3D%20Rendering/3d-scene/wasm_example_bg.wasm:wasm-function[15774]:0xfa878b
at https://bevy-webgl2-examples.pages.dev/3D%20Rendering/3d-scene/wasm_example_bg.wasm:wasm-function[26849]:0x1177b99
at https://bevy-webgl2-examples.pages.dev/3D%20Rendering/3d-scene/wasm_example_bg.wasm:wasm-function[22765]:0x109e733
at https://bevy-webgl2-examples.pages.dev/3D%20Rendering/3d-scene/wasm_example_bg.wasm:wasm-function[9796]:0xd5761c
at https://bevy-webgl2-examples.pages.dev/3D%20Rendering/3d-scene/wasm_example_bg.wasm:wasm-function[3380]:0x83cab6
at https://bevy-webgl2-examples.pages.dev/3D%20Rendering/3d-scene/wasm_example_bg.wasm:wasm-function[51476]:0x124c632
at https://bevy-webgl2-examples.pages.dev/3D%20Rendering/3d-scene/wasm_example_bg.wasm:wasm-function[2077]:0x6eced3
at https://bevy-webgl2-examples.pages.dev/3D%20Rendering/3d-scene/wasm_example_bg.wasm:wasm-function[14528]:0xf1ac5d
```

If you look at it from the browser's debugging page, it's normal, but I don't know why the progress bar doesn't disappear.

It's the same with 2D

Contributor guide
Assessment
This issue has not been assessed yet.