Skip to content

Commit 6558deb

Browse files
authored
Split up features. (#6905)
Splits up features into wgpu & webgpu features.
1 parent 4675393 commit 6558deb

File tree

4 files changed

+1372
-821
lines changed

4 files changed

+1372
-821
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,15 @@ Bottom level categories:
5656
- Rename `instance_id` and `instance_custom_index` to `instance_index` and `instance_custom_data` by @Vecvec in
5757
[#6780](https://github.com/gfx-rs/wgpu/pull/6780)
5858

59+
##### Split up `Features` internally
60+
61+
Internally split up the `Features` struct and recombine them internally using a macro. There should be no breaking
62+
changes from this. This means there are also namespaces (as well as the old `Features::*`) for all wgpu specific
63+
features and webgpu feature (`FeaturesWGPU` and `FeaturesWebGPU` respectively) and `Features::from_internal_flags` which
64+
allow you to be explicit about whether features you need are available on the web too.
65+
66+
By @Vecvec in [#6905](https://github.com/gfx-rs/wgpu/pull/6905).
67+
5968
##### Refactored internal trace path parameter
6069

6170
Refactored some functions to handle the internal trace path as a string to avoid possible issues with `no_std` support.

tests/tests/device.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ async fn request_device_error_message() {
119119
let expected = "TypeError";
120120
} else {
121121
// This message appears whenever wgpu-core is used as the implementation.
122-
let expected = "Unsupported features were requested: Features(";
122+
let expected = "Unsupported features were requested: Features {";
123123
}
124124
}
125125
assert!(device_error.contains(expected), "{device_error}");

0 commit comments

Comments
 (0)