File tree Expand file tree Collapse file tree 5 files changed +17
-8
lines changed Expand file tree Collapse file tree 5 files changed +17
-8
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,12 @@ Bottom level categories:
4040
4141## Unreleased
4242
43+ ## wgpu-0.14.2 (2022-11-28)
44+
45+ ### Bug Fixes
46+
47+ - Fix incorrect offset in ` get_mapped_range ` by @nical in [ #3233 ] ( https://github.com/gfx-rs/wgpu/pull/3233 )
48+
4349## wgpu-0.14.1 (2022-11-02)
4450
4551### Bug Fixes
Original file line number Diff line number Diff line change 11[package ]
22name = " wgpu-core"
3- version = " 0.14.0 "
3+ version = " 0.14.2 "
44authors = [" wgpu developers" ]
55edition = " 2021"
66description = " WebGPU core logic on wgpu-hal"
Original file line number Diff line number Diff line change @@ -5654,7 +5654,10 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
56545654 max : range. end ,
56555655 } ) ;
56565656 }
5657- unsafe { Ok ( ( ptr. as_ptr ( ) . offset ( offset as isize ) , range_size) ) }
5657+ // ptr points to the beginning of the range we mapped in map_async
5658+ // rather thant the beginning of the buffer.
5659+ let relative_offset = ( offset - range. start ) as isize ;
5660+ unsafe { Ok ( ( ptr. as_ptr ( ) . offset ( relative_offset) , range_size) ) }
56585661 }
56595662 resource:: BufferMapState :: Idle | resource:: BufferMapState :: Waiting ( _) => {
56605663 Err ( BufferAccessError :: NotMapped )
Original file line number Diff line number Diff line change 11[package ]
22name = " wgpu"
3- version = " 0.14.0 "
3+ version = " 0.14.2 "
44authors = [" wgpu developers" ]
55edition = " 2021"
66description = " Rusty WebGPU API wrapper"
@@ -89,7 +89,7 @@ vulkan-portability = ["wgc/vulkan-portability"]
8989[target .'cfg(not(target_arch = "wasm32"))' .dependencies .wgc ]
9090package = " wgpu-core"
9191path = " ../wgpu-core"
92- version = " 0.14"
92+ version = " 0.14.2 "
9393features = [" raw-window-handle" ]
9494
9595[target .'cfg(target_arch = "wasm32")' .dependencies .wgc ]
You can’t perform that action at this time.
0 commit comments