docs(CHANGELOG): polish enumerate_adapters-is-async section (#8318)

* docs(CHANGELOG): polish `enumerate_adapters`-is-`async` section

* docs(CHANGELOG): indirectly acknowledge "yield" joke
This commit is contained in:
Erich Gubler 2025-10-08 14:19:00 -04:00 committed by GitHub
parent a8f51f8fd1
commit bbedf6c226
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,20 +40,26 @@ Bottom level categories:
## Unreleased
### Major changes
#### 'wgpu::Instance::enumerate_adapters` is now `async` & available on WebGPU
Making `enumerate_adapters` async allows custom backends to use it along with eliminating some native/non-native distinctions
This is a breaking change
BREAKING CHANGE: `enumerate_adapters` is now `async`:
```diff
- pub fn enumerate_adapters(&self, backends: Backends) -> Vec<Adapter> {
+ pub fn enumerate_adapters(&self, backends: Backends) -> impl Future<Output = Vec<Adapter>> {
```
This yields ([kek]) two benefits:
- This method is now implemented on non-native using the standard `Adapter::request_adapter(…)`, making `enumerate_adapters` a portable surface. This was previous a nontrivial pain point when an application wanted to do some of its own filtering of adapters.
- This method can now be implemented in custom backends.
By @R-Cramer4 in [#8230](https://github.com/gfx-rs/wgpu/pull/8230)
[kek]: https://web.archive.org/web/20250923122958/https://knowyourmeme.com/memes/kek
#### `MipmapFilterMode` is split from `FilterMode`
This is a breaking change that aligns wgpu with spec.