winit 0.30.0 with wgpu #3667
-
I'm running into a problem migrating my 0.29 app to 0.30. wgpu requires async to create the context, and this context also needs access to winit's window handle. However, in the new trait-based architecture I've tried using |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
wgpu suggests to use |
Beta Was this translation helpful? Give feedback.
-
How did you handle the ownership of the I'm struggling a bit with it since now the window should be created inside |
Beta Was this translation helpful? Give feedback.
-
The way the do in their examples, with |
Beta Was this translation helpful? Give feedback.
wgpu suggests to use
block_on
, but it's not like we can do much about it, unless you write a wrapper to make things async, given that winit was never designed to be async and won't be async.