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
Surface::from_handle now take a SurfaceApi but it's unclear how to dynamicly determine this information, specially there is no "Unknown" or "Generic" variant. The documentation is currently empty about SurfaceApi. Is this important ? Can I fill a dummy value ?
The text was updated successfully, but these errors were encountered:
You need to pass the windowing API that was used to create the surface handle. Each of them corresponds to one of the constructor functions of Surface. For example, if the handle was created by calling vkCreateWin32SurfaceKHR or Vulkano's equivalent Surface::from_win32, then you pass SurfaceApi::Win32.
The example they have is in fact undefined behavior. You should use this. I wanted to fix their example once we release, but you will only be able to use this function after sdl2 releases. They are still stuck on an ancient version of raw-window-handle.
Surface::from_handle
now take aSurfaceApi
but it's unclear how to dynamicly determine this information, specially there is no "Unknown" or "Generic" variant. The documentation is currently empty aboutSurfaceApi
. Is this important ? Can I fill a dummy value ?The text was updated successfully, but these errors were encountered: