Skip to content

Remove offset argument from TrackedRenderPass::set_index_buffer#20468

Merged
james7132 merged 4 commits intobevyengine:mainfrom
akimakinai:buffer_slice_cleanup
Sep 30, 2025
Merged

Remove offset argument from TrackedRenderPass::set_index_buffer#20468
james7132 merged 4 commits intobevyengine:mainfrom
akimakinai:buffer_slice_cleanup

Conversation

@akimakinai
Copy link
Contributor

@akimakinai akimakinai commented Aug 9, 2025

Objective

Solution

Testing

  • Ran a few examples

@james7132 james7132 added A-Rendering Drawing game state to the screen C-Usability A targeted quality-of-life change that makes Bevy easier to use labels Aug 9, 2025
@james7132 james7132 added C-Code-Quality A section of code that is hard to understand or change M-Migration-Guide A breaking change to Bevy's public API that needs to be noted in a migration guide S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Aug 9, 2025
@akimakinai akimakinai mentioned this pull request Sep 30, 2025
github-merge-queue bot pushed a commit that referenced this pull request Sep 30, 2025
# Objective

- Cleanup code by utilizing `wgpu::BufferSlice::offset`/`size` (added in
wpgu 25).

This is technically a breaking change.
`bevy::BufferSlice::offset`/`size` no longer exists, and `.size()` now
returns `wgpu::BufferSize = NonZeroU64` instead of `wgpu::BufferAddress
= u64`.

Originally in PR #20468. I
thought this is conflated and should be separated
 thread 'main' panicked at tools/export-content/src/main.rs:35:25:
called `Result::unwrap()` on an `Err` value:   × failed to parse metadata in migration guide file set_index_buffer.md
   ╭─[/home/runner/work/bevy/bevy/release-content/migration-guides/set_index_buffer.md:1:8]
 1 │ title: `TrackedRenderPass::set_index_buffer` no longer takes buffer offset
   ·        ▲
   ·        ╰── found character that cannot start any token at line 1 column 8, while scanning for the next token
 2 │ pull_requests: [20468]
   ╰────
@james7132 james7132 added D-Trivial Nice and easy! A great choice to get started with Bevy and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Sep 30, 2025
@james7132 james7132 added this to the 0.18 milestone Sep 30, 2025
@james7132 james7132 enabled auto-merge September 30, 2025 02:57
@james7132 james7132 added this pull request to the merge queue Sep 30, 2025
Merged via the queue into bevyengine:main with commit 633f14b Sep 30, 2025
38 checks passed
@akimakinai
Copy link
Contributor Author

Thank you!

@akimakinai akimakinai deleted the buffer_slice_cleanup branch September 30, 2025 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Rendering Drawing game state to the screen C-Code-Quality A section of code that is hard to understand or change C-Usability A targeted quality-of-life change that makes Bevy easier to use D-Trivial Nice and easy! A great choice to get started with Bevy M-Migration-Guide A breaking change to Bevy's public API that needs to be noted in a migration guide

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants