raw_window_handle::HasRawWindowHandle not implemented #4989
-
I have been trying to update the version of wgpu in my engine to 0.18 ever since it came out, yet I still cannot solve an issue on surface creation. I've checked the examples, other people's updates, everywhere and still couldn't understand what caused the issue... The error I get:
my dependency: reference I checked from wgpu repo |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
As # Cargo.toml
winit = { version = "0.29" , features = ["rwh_05"] }
wgpu = "0.18" |
Beta Was this translation helpful? Give feedback.
-
Oh thanks! I read that in an issue somewhere in wgpu too, however when I looked at the wgpu repo's Cargo.toml, it was rwh6 so I thought maybe that's not the issue and moved on 😅 |
Beta Was this translation helpful? Give feedback.
As
winit
has support for different versions of theraw_window_handle
protocols, you will need to enable the appropriate version forwgpu
. Here's what I use: