You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You have to use the raw-window-handle implementation to get the ns_view pointer
I noticed that the logs for the release version of winit have instructions for using raw_window_handle. But I didn't find any example or description of winit with raw_window_handle.
Activity
madsmtm commentedon Nov 2, 2023
You have to use the
raw-window-handleimplementation to get thens_viewpointerKaifuny commentedon Nov 2, 2023
I noticed that the logs for the release version of winit have instructions for using raw_window_handle. But I didn't find any example or description of winit with raw_window_handle.
MarijnS95 commentedon Nov 21, 2023
You might want to look at https://github.com/norse-rs/raw-window-metal which takes care of part of the conversion :)
Rottenfront commentedon Jan 6, 2024
@Kaifuny, there is an example of using raw window handle 0.6 with latest winit 0.29 by skia-safe
MarijnS95 commentedon Jan 6, 2024
@Rottenfront that link points to the main repo here which is still on Winit 0.27. Did you mean to point to a fork?
Rottenfront commentedon Jan 7, 2024
@MarijnS95 oh, I'm sorry, I meant this https://github.com/rust-skia/rust-skia/blob/master/skia-safe/examples/metal-window/main.rs
MarijnS95 commentedon Jan 7, 2024
Nice, yeah part of that is what
raw-window-metalabstracts away for you (though not by using themetal-rstype yet).