Skip to content

Remove Image::from_buffer name argument (only present in debug "dds" builds)#18538

Merged
alice-i-cecile merged 3 commits intobevyengine:mainfrom
brianreavis:pr-image-from-buffer-args
Mar 25, 2025
Merged

Remove Image::from_buffer name argument (only present in debug "dds" builds)#18538
alice-i-cecile merged 3 commits intobevyengine:mainfrom
brianreavis:pr-image-from-buffer-args

Conversation

@brianreavis
Copy link
Copy Markdown
Contributor

@brianreavis brianreavis commented Mar 25, 2025

Objective

Solution

The name argument could either be made permanent (by removing the #[cfg(...)] condition) or eliminated entirely. I opted to remove it, as debugging a specific DDS texture edge case in GLTF files doesn't seem necessary, and there isn't any other foreseeable need to have it.

Migration Guide

  • Image::from_buffer() no longer has a name argument that's only present in debug builds when the "dds" feature is enabled. If you happen to pass a name, remove it.

@brianreavis brianreavis changed the title Remove Image::from_buffer name argument (only present in debug "dds" builds) Remove Image::from_buffer name argument (only present in debug "dds" builds) Mar 25, 2025
@brianreavis brianreavis added C-Usability A targeted quality-of-life change that makes Bevy easier to use D-Straightforward Simple bug fixes and API improvements, docs, test and examples labels Mar 25, 2025
Copy link
Copy Markdown
Contributor

@IceSentry IceSentry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assuming CI is fixed LGTM

@brianreavis brianreavis added the S-Needs-Review Needs reviewer attention (from anyone!) to move forward label Mar 25, 2025
@brianreavis brianreavis requested review from IceSentry and JMS55 March 25, 2025 16:36
@alice-i-cecile alice-i-cecile added this to the 0.16 milestone Mar 25, 2025
@alice-i-cecile alice-i-cecile added S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Mar 25, 2025
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Mar 25, 2025
Merged via the queue into bevyengine:main with commit 9d25689 Mar 25, 2025
38 checks passed
@mockersf mockersf removed this from the 0.16 milestone Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-Usability A targeted quality-of-life change that makes Bevy easier to use D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Image::from_buffer's public signature changes if debug assertions are enabled

4 participants