-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[wgpu] Improve buffer mapping errors and allow aliasing immutable borrows #8150
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
Conversation
124daab
to
54ea66f
Compare
54ea66f
to
5b3b32a
Compare
5b3b32a
to
19203ae
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome feature & tests. absolutely love it
@@ -125,6 +125,7 @@ By @cwfitzgerald in [#8162](https://github.com/gfx-rs/wgpu/pull/8162). | |||
By @kpreid in [#8011](https://github.com/gfx-rs/wgpu/pull/8011). | |||
- Make a compacted hal acceleration structure inherit a label from the base BLAS. By @Vecvec in [#8103](https://github.com/gfx-rs/wgpu/pull/8103). | |||
- The limits requested for a device must now satisfy `min_subgroup_size <= max_subgroup_size`. By @andyleiserson in [#8085](https://github.com/gfx-rs/wgpu/pull/8085). | |||
- Improve errors when buffer mapping is done incorrectly. Allow aliasing immutable [`BufferViews`]. By @cwfitzgerald in [#8150](https://github.com/gfx-rs/wgpu/pull/8150). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's add a highlight for this & removed lifetimes on buffer mappings. If you're used to working around these this thing is a lifechanger!
ah sorry, didn't realize that. Up to you then |
Connections
Thought I found a bug, realized I was holding it wrong but I was in there anyway so I fixed some stuff
Description
This does three things:
#[track_caller]
annotations.Testing
As this has consequences for soundness, I added a bunch of tests. I checked the coverage report and all codepath I changed are covered in the tests.
Squash or Rebase?
Dontcare