Skip to content

Commit

Permalink
Release 0.19 (#5082)
Browse files Browse the repository at this point in the history
  • Loading branch information
cwfitzgerald authored Jan 17, 2024
1 parent 4c18e28 commit 8b2098b
Show file tree
Hide file tree
Showing 11 changed files with 75 additions and 42 deletions.
35 changes: 34 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,17 @@ Bottom level categories:
- Hal
-->

## Unreleased
## v0.19.0 (2024-01-17)

This release includes:
- `wgpu`
- `wgpu-core`
- `wgpu-hal`
- `wgpu-types`
- `wgpu-info`
- `naga` (skipped from 0.14 to 0.19)
- `naga-cli` (skipped from 0.14 to 0.19)
- `d3d12` (skipped from 0.7 to 0.19)

### Improved Multithreading through internal use of Reference Counting

Expand Down Expand Up @@ -181,6 +191,29 @@ As part of this work, the public types `naga::ScalarKind` and

By @jimblandy in [#4743](https://github.com/gfx-rs/wgpu/pull/4743), [#4755](https://github.com/gfx-rs/wgpu/pull/4755).

### `Instance::enumerate_adapters` now returns `Vec<Adapter>` instead of an `ExactSizeIterator`

This allows us to support WebGPU and WebGL in the same binary.

```diff
- let adapters: Vec<Adapter> = instance.enumerate_adapters(wgpu::Backends::all()).collect();
+ let adapters: Vec<Adapter> = instance.enumerate_adapters(wgpu::Backends::all());
```

By @wumpf in [#5044](https://github.com/gfx-rs/wgpu/pull/5044)

### `device.poll()` now returns a `MaintainResult` instead of a `bool`

This is a forward looking change, as we plan to add more information to the `MaintainResult` in the future.
This enum has the same data as the boolean, but with some useful helper functions.

```diff
- let queue_finished: bool = device.poll(wgpu::Maintain::Wait);
+ let queue_finished: bool = device.poll(wgpu::Maintain::Wait).is_queue_empty();
```

By @cwfitzgerald in [#5053](https://github.com/gfx-rs/wgpu/pull/5053)

### New Features

#### General
Expand Down
28 changes: 14 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 11 additions & 11 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,27 +45,27 @@ keywords = ["graphics"]
license = "MIT OR Apache-2.0"
homepage = "https://wgpu.rs/"
repository = "https://github.com/gfx-rs/wgpu"
version = "0.18.0"
version = "0.19.0"
authors = ["gfx-rs developers"]

[workspace.dependencies.wgc]
package = "wgpu-core"
path = "./wgpu-core"
version = "0.18.0"
version = "0.19.0"

[workspace.dependencies.wgt]
package = "wgpu-types"
path = "./wgpu-types"
version = "0.18.0"
version = "0.19.0"

[workspace.dependencies.hal]
package = "wgpu-hal"
path = "./wgpu-hal"
version = "0.18.0"
version = "0.19.0"

[workspace.dependencies.naga]
path = "./naga"
version = "0.14.0"
version = "0.19.0"

[workspace.dependencies]
anyhow = "1.0"
Expand Down Expand Up @@ -117,12 +117,12 @@ serde_json = "1.0.111"
smallvec = "1"
static_assertions = "1.1.0"
thiserror = "1"
wgpu = { version = "0.18.0", path = "./wgpu" }
wgpu-core = { version = "0.18.0", path = "./wgpu-core" }
wgpu-example = { version = "0.18.0", path = "./examples/common" }
wgpu-macros = { version = "0.18.0", path = "./wgpu-macros" }
wgpu-test = { version = "0.18.0", path = "./tests" }
wgpu-types = { version = "0.18.0", path = "./wgpu-types" }
wgpu = { version = "0.19.0", path = "./wgpu" }
wgpu-core = { version = "0.19.0", path = "./wgpu-core" }
wgpu-example = { version = "0.19.0", path = "./examples/common" }
wgpu-macros = { version = "0.19.0", path = "./wgpu-macros" }
wgpu-test = { version = "0.19.0", path = "./tests" }
wgpu-types = { version = "0.19.0", path = "./wgpu-types" }
winit = { version = "0.29", features = ["android-native-activity"] }

# Metal dependencies
Expand Down
2 changes: 1 addition & 1 deletion d3d12/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "d3d12"
version = "0.7.0"
version = "0.19.0"
authors = ["gfx-rs developers"]
description = "Low level D3D12 API wrapper"
repository = "https://github.com/gfx-rs/wgpu/tree/trunk/d3d12"
Expand Down
2 changes: 1 addition & 1 deletion deno_webgpu/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ workspace = true
features = ["dx12"]

[target.'cfg(windows)'.dependencies.wgpu-hal]
version = "0.18.0"
version = "0.19.0"
path = "../wgpu-hal"
features = ["windows_rs"]

Expand Down
4 changes: 2 additions & 2 deletions naga-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "naga-cli"
version = "0.14.0"
version = "0.19.0"
authors = ["gfx-rs developers"]
edition = "2021"
description = "Shader translation command line tool"
Expand All @@ -25,7 +25,7 @@ env_logger = "0.10"
argh = "0.1.5"

[dependencies.naga]
version = "0.14"
version = "0.19"
path = "../naga"
features = [
"compact",
Expand Down
2 changes: 1 addition & 1 deletion naga/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "naga"
version = "0.14.2"
version = "0.19.0"
authors = ["gfx-rs developers"]
edition = "2021"
description = "Shader translation infrastructure"
Expand Down
2 changes: 1 addition & 1 deletion naga/fuzz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ libfuzzer-sys = "0.4"

[target.'cfg(not(any(target_arch = "wasm32", target_os = "ios")))'.dependencies.naga]
path = ".."
version = "0.14.0"
version = "0.19.0"
features = ["arbitrary", "spv-in", "wgsl-in", "glsl-in"]

[[bin]]
Expand Down
8 changes: 4 additions & 4 deletions wgpu-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wgpu-core"
version = "0.18.0"
version = "0.19.0"
authors = ["gfx-rs developers"]
edition = "2021"
description = "WebGPU core logic on wgpu-hal"
Expand Down Expand Up @@ -109,18 +109,18 @@ thiserror = "1"

[dependencies.naga]
path = "../naga"
version = "0.14.0"
version = "0.19.0"
features = ["clone"]

[dependencies.wgt]
package = "wgpu-types"
path = "../wgpu-types"
version = "0.18.0"
version = "0.19.0"

[dependencies.hal]
package = "wgpu-hal"
path = "../wgpu-hal"
version = "0.18.0"
version = "0.19.0"
default_features = false

[target.'cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))'.dependencies]
Expand Down
10 changes: 5 additions & 5 deletions wgpu-hal/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wgpu-hal"
version = "0.18.0"
version = "0.19.0"
authors = ["gfx-rs developers"]
edition = "2021"
description = "WebGPU hardware abstraction layer"
Expand Down Expand Up @@ -90,7 +90,7 @@ glow = { version = "0.13", git = "https://github.com/grovesNL/glow.git", rev = "
[dependencies.wgt]
package = "wgpu-types"
path = "../wgpu-types"
version = "0.18.0"
version = "0.19.0"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
# backend: Vulkan
Expand Down Expand Up @@ -127,7 +127,7 @@ winapi = { version = "0.3", features = [
"winuser",
"dcomp",
] }
d3d12 = { path = "../d3d12/", version = "0.7.0", optional = true, features = [
d3d12 = { path = "../d3d12/", version = "0.19.0", optional = true, features = [
"libloading",
] }

Expand Down Expand Up @@ -157,7 +157,7 @@ android_system_properties = "0.1.1"

[dependencies.naga]
path = "../naga"
version = "0.14.0"
version = "0.19.0"
features = ["clone"]

[build-dependencies]
Expand All @@ -166,7 +166,7 @@ cfg_aliases.workspace = true
# DEV dependencies
[dev-dependencies.naga]
path = "../naga"
version = "0.14.0"
version = "0.19.0"
features = ["wgsl-in"]

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion wgpu-types/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wgpu-types"
version = "0.18.0"
version = "0.19.0"
authors = ["gfx-rs developers"]
edition = "2021"
description = "WebGPU types"
Expand Down

0 comments on commit 8b2098b

Please sign in to comment.