bevy_render::Image data calculations do not account for mip levels
Open
A-Rendering
C-Bug
- Dominant language
- Rust
- Stars
- 48.2k
- Forks
- 4.8k
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 161
Description
## Bevy version
37915e1d9370a7ea46afb3eec6d62b4074a9f120
## Info
Any `Image` size/data length related calculations such as in `new()`, `new_fill()`, `resize()`, etc do not account for mip levels.
See the wgpu docs: https://docs.rs/wgpu/latest/wgpu/util/trait.DeviceExt.html#tymethod.create_texture_with_data
Contributor guide
Assessment
This issue has not been assessed yet.