mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
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:
parent
a8f51f8fd1
commit
bbedf6c226
14
CHANGELOG.md
14
CHANGELOG.md
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user