alaingalvan/CrossWindow

Unable to access CAMetalLayer with CocoaWindow due to protected layer property

fathonyfath opened this issue · 0 comments

According to the documentation for CrossWindow-Renderer, in order to access the underlying CAMetalLayer, we need to access the layer property. However, this property is marked as protected in CocoaWindow, which makes it impossible to use Metal with Cocoa. The relevant code can be found here:

protected:
// NSString*
void* mTitle;
WindowDesc mDesc;
// XWinWindow*
void* window;
// XWinView*
void* view;
// Any Layer Type
void* layer;

In contrast, the layer property is publicly accessible in UIKitWindow.