bevyengine / bevyengine/bevy

bevy_render::Image data calculations do not account for mip levels

Open
#9,413 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.