Skip to content

Conversation

@kpreid
Copy link
Collaborator

@kpreid kpreid commented Feb 19, 2025

Connections
Implements the plan described in review comment #6900 (comment) and was made possible by #7148.

Description
Simplifies the tuple returned by StagingBelt::allocate() by returning a BufferSlice instead of a Buffer and offset.

Testing
allocate() has no tests, but I tested that this API still works with my application.

Checklist

  • Run cargo fmt.
  • Run taplo format.
  • Run cargo clippy. If applicable, add:
    • --target wasm32-unknown-unknown
  • Run cargo xtask test to run tests.
  • Add change to CHANGELOG.md. See simple instructions inside file. StagingBelt is new this release cycle and already in the changelog.

@kpreid kpreid requested a review from a team as a code owner February 19, 2025 01:57
@cwfitzgerald cwfitzgerald self-assigned this Feb 19, 2025
@nical nical merged commit 9c0fa29 into gfx-rs:trunk Feb 20, 2025
34 checks passed
@kpreid kpreid deleted the bufferslice branch March 14, 2025 17:33
sharmajai pushed a commit to sharmajai/wgpu that referenced this pull request Oct 12, 2025
* Use `BufferSlice` in `StagingBelt::allocate()`.

* Make `StagingBelt::allocate()` return just the slice.
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.

3 participants