Skip to content

Allow using Device::create_texture_with_data correctly with mipmapped non-block aligned textures #7678

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

Open
wants to merge 2 commits into
base: trunk
Choose a base branch
from

Conversation

atlv24
Copy link
Collaborator

@atlv24 atlv24 commented May 8, 2025

Connections
Fixes #7677
Bevy side of the fix: bevyengine/bevy#19129

Description
Implicitly expand size to blocksize in create_texture_with_data to allow using logical size in mip size computations

Testing
Patch into bevy repro of the issue and it works

Squash or Rebase?
Any

Checklist

  • Run cargo fmt.
  • Run taplo format.
  • Run cargo clippy --tests. If applicable, add:
    • --target wasm32-unknown-unknown
  • Run cargo xtask test to run tests.
  • If this contains user-facing changes, add a CHANGELOG.md entry.

…low using logical size in mip size computations
@cwfitzgerald cwfitzgerald changed the title Allow using Device::create_texture_with_data correctly with mipmapped nPOT textures Allow using Device::create_texture_with_data correctly with mipmapped non-block aligned textures May 17, 2025
@cwfitzgerald cwfitzgerald self-assigned this May 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Device::create_texture_with_data is not possible to use correctly with mipmapped non-block aligned textures.
2 participants