Do you have more info on what you're trying to accomplish? e.g is this for a bare
CALayer
you own or a
CALayer
backing an
NSView
?
Since the objc
property of CALayer
is exposed publicly, you can message it directly with objc
calls (e.g let _: () = msg_send![my_view.layer.id, surface];
). You of course need to handle the lifetimes and safety yourself, but this is one of those territories where it's the preferred way of doing it at the moment.
If you wind up finding a more comfortable API and/or you want to buff the CALayer
wrapper to be more comprehensive, a pull request is always welcome. I wouldn't pull IOSurface
into this framework necessarily, similar to how Metal
isn't really in here either (though other crates exist for it). In general I just try to make it possible for crates to interop via the objc
layer if possible.
I considered making a channel on Matrix at one point, but the level of activity here isn't so significant that it's needed. on missing CALayer.contents -> Any?
2 months ago