mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-25 00:03:29 +00:00
parent
77b9a99cf4
commit
628a25ef30
@ -40,6 +40,12 @@ Bottom level categories:
|
|||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
## wgpu-0.14.2 (2022-11-28)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
- Fix incorrect offset in `get_mapped_range` by @nical in [#3233](https://github.com/gfx-rs/wgpu/pull/3233)
|
||||||
|
|
||||||
## wgpu-0.14.1 (2022-11-02)
|
## wgpu-0.14.1 (2022-11-02)
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
8
Cargo.lock
generated
8
Cargo.lock
generated
@ -2200,7 +2200,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "wgpu"
|
name = "wgpu"
|
||||||
version = "0.14.0"
|
version = "0.14.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"arrayvec 0.7.2",
|
"arrayvec 0.7.2",
|
||||||
"async-executor",
|
"async-executor",
|
||||||
@ -2218,7 +2218,7 @@ dependencies = [
|
|||||||
"nanorand",
|
"nanorand",
|
||||||
"noise",
|
"noise",
|
||||||
"obj",
|
"obj",
|
||||||
"parking_lot 0.12.1",
|
"parking_lot 0.11.2",
|
||||||
"png",
|
"png",
|
||||||
"pollster",
|
"pollster",
|
||||||
"raw-window-handle 0.5.0",
|
"raw-window-handle 0.5.0",
|
||||||
@ -2236,7 +2236,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "wgpu-core"
|
name = "wgpu-core"
|
||||||
version = "0.14.0"
|
version = "0.14.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"arrayvec 0.7.2",
|
"arrayvec 0.7.2",
|
||||||
"bit-vec",
|
"bit-vec",
|
||||||
@ -2246,7 +2246,7 @@ dependencies = [
|
|||||||
"fxhash",
|
"fxhash",
|
||||||
"log",
|
"log",
|
||||||
"naga",
|
"naga",
|
||||||
"parking_lot 0.12.1",
|
"parking_lot 0.11.2",
|
||||||
"profiling",
|
"profiling",
|
||||||
"raw-window-handle 0.5.0",
|
"raw-window-handle 0.5.0",
|
||||||
"ron",
|
"ron",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "wgpu-core"
|
name = "wgpu-core"
|
||||||
version = "0.14.0"
|
version = "0.14.2"
|
||||||
authors = ["wgpu developers"]
|
authors = ["wgpu developers"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "WebGPU core logic on wgpu-hal"
|
description = "WebGPU core logic on wgpu-hal"
|
||||||
|
@ -5654,7 +5654,10 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
|
|||||||
max: range.end,
|
max: range.end,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
unsafe { Ok((ptr.as_ptr().offset(offset as isize), range_size)) }
|
// ptr points to the beginning of the range we mapped in map_async
|
||||||
|
// rather thant the beginning of the buffer.
|
||||||
|
let relative_offset = (offset - range.start) as isize;
|
||||||
|
unsafe { Ok((ptr.as_ptr().offset(relative_offset), range_size)) }
|
||||||
}
|
}
|
||||||
resource::BufferMapState::Idle | resource::BufferMapState::Waiting(_) => {
|
resource::BufferMapState::Idle | resource::BufferMapState::Waiting(_) => {
|
||||||
Err(BufferAccessError::NotMapped)
|
Err(BufferAccessError::NotMapped)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "wgpu"
|
name = "wgpu"
|
||||||
version = "0.14.0"
|
version = "0.14.2"
|
||||||
authors = ["wgpu developers"]
|
authors = ["wgpu developers"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "Rusty WebGPU API wrapper"
|
description = "Rusty WebGPU API wrapper"
|
||||||
@ -89,7 +89,7 @@ vulkan-portability = ["wgc/vulkan-portability"]
|
|||||||
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.wgc]
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.wgc]
|
||||||
package = "wgpu-core"
|
package = "wgpu-core"
|
||||||
path = "../wgpu-core"
|
path = "../wgpu-core"
|
||||||
version = "0.14"
|
version = "0.14.2"
|
||||||
features = ["raw-window-handle"]
|
features = ["raw-window-handle"]
|
||||||
|
|
||||||
[target.'cfg(target_arch = "wasm32")'.dependencies.wgc]
|
[target.'cfg(target_arch = "wasm32")'.dependencies.wgc]
|
||||||
|
Loading…
Reference in New Issue
Block a user