wgpu/wgpu-core/src
Nicolas Silva 324de1bef6
Ensure the BufferMapCallback is always called. (#2848)
* Ensure the BufferMapAsyncCallback is always called.

This solves two issues on the Gecko side:
 - The callback cleans up after itself (the user data is deleted at the end of the callback), so dropping the callback without calling it is a memory leak. I can't think of a better way to implement this on the C++ side since there can be any number of callback at any time living for an unspecified amount of time.
 - This makes it easier to implement the error reporting of the WebGPU spec.

* Update the changelog.
2022-07-07 23:29:05 -07:00
..
command Flip span labels to work better with tools (#2820) 2022-06-28 19:49:51 +00:00
device Ensure the BufferMapCallback is always called. (#2848) 2022-07-07 23:29:05 -07:00
init_tracker Tracking Optimization and Rewrite (#2662) 2022-05-24 11:36:13 -04:00
track Properly Barrier Compute Indirect Buffers (#2810) 2022-06-26 21:03:56 +00:00
binding_model.rs Improve read-write and read-only texture storage error message (#2745) 2022-06-07 06:21:17 +00:00
conv.rs Align the validation of Device::create_texture with the WebGPU spec (#2759) 2022-06-10 16:02:49 -04:00
error.rs Remove AsDisplay trait in error formatting 2021-08-03 11:51:52 -04:00
hub.rs Flip span labels to work better with tools (#2820) 2022-06-28 19:49:51 +00:00
id.rs Implement Queue::write_buffer_with (#2777) 2022-06-28 18:32:43 +00:00
instance.rs Prevent get_texture_format_features from saying textures always support COPY_* 2022-07-06 11:06:34 -04:00
lib.rs Rename MAX_COLOR_TARGETS to MAX_COLOR_ATTACHMENTS to match spec 2022-06-16 20:36:15 -07:00
pipeline.rs Allow fragment stage to have more outputs than the pipeline has (#2822) 2022-06-30 03:36:11 +00:00
present.rs Improve Presentation Api (#2803) 2022-06-30 14:24:17 -04:00
resource.rs Ensure the BufferMapCallback is always called. (#2848) 2022-07-07 23:29:05 -07:00
validation.rs Add DEPTH24UNORM_STENCIL8 feature (#2689) 2022-05-30 15:29:12 -04:00