forked from bevyengine/bevy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use safe window handles and
wgpu::Instance::create_surface
I noticed that bevyengine#12978 introduces a reference counted wrapper around windows, but still uses `RawWindowHandle` and `RawDisplayHandle`, with `wgpu::Instance::create_surface_unsafe`. This can be changed easily enough to use `wgpu::Instance::create_surface`, and not use the raw handles anywhere. Apparently we can just cast a `Arc<W>` to an `Arc<dyn Trait>`, so that makes `WindowWrapper` a little simpler too.
- Loading branch information
Showing
2 changed files
with
27 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters