Skip to content

Commit 867b1c6

Browse files
committed
Changed enumerate_adapters to be able to work with custom backends
1 parent 61e5124 commit 867b1c6

File tree

12 files changed

+82
-6064
lines changed

12 files changed

+82
-6064
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,20 @@ by if the `Feature::MULTI_DRAW_INDIRECT_COUNT` feature is available on the devic
158158

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

161+
#### enumerate_adapters was made async
162+
163+
Making `enumerate_adapters` async allows custom backends to use it along with elimnating some native/non-native distinctions
164+
165+
This is a breaking change
166+
167+
```diff
168+
- pub fn enumerate_adapters(&self, backends: Backends) -> Vec<Adapter> {
169+
+ pub fn enumerate_adapters(&self, backends: Backends) -> impl Future<Output = Vec<Adapter>> {
170+
171+
```
172+
173+
By @R-Cramer4 in [#8230](https://github.com/gfx-rs/wgpu/pull/8230)
174+
161175
### New Features
162176

163177
#### General

0 commit comments

Comments
 (0)