Unable to access CAMetalLayer with CocoaWindow due to protected layer property
fathonyfath opened this issue · 0 comments
fathonyfath commented
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:
CrossWindow/src/CrossWindow/Cocoa/CocoaWindow.h
Lines 48 to 61 in 3511e43
In contrast, the layer
property is publicly accessible in UIKitWindow
.