SDL icon indicating copy to clipboard operation
SDL copied to clipboard

Metal Contentview.layer in syswm

Open icculus opened this issue 3 years ago • 1 comments

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

icculus avatar Nov 26 '22 01:11 icculus

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.

slime73 avatar Nov 30 '22 03:11 slime73

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.

slouken avatar Nov 07 '23 19:11 slouken