SDL
SDL copied to clipboard
Metal Contentview.layer in syswm
Mentioned in #6535, for future consideration:
However SDL_SysWMinfo probably should expose a pointer to contentView.layer.
Originally posted by @icculus in https://github.com/libsdl-org/SDL/issues/3519#issuecomment-1318063657
Does SDL_Metal_GetLayer return what they needed? I actually don't know if it returns the same layer as the backing view's layer on macOS, but I think it is what VkMetalSurfaceCreateInfoEXT expects at least.
I think so. Also I'd like to move a bunch of the SysWM stuff into window properties in the future so it can be easily extended.