You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
In contrast, the layer property is publicly accessible in UIKitWindow.
The text was updated successfully, but these errors were encountered:
fathonyfath
changed the title
Unable to access CAMetalLayer in CrossWindow-Renderer with CocoaWindow due to protected layer property
Unable to access CAMetalLayer with CocoaWindow due to protected layer property
Mar 17, 2023
According to the documentation for CrossWindow-Renderer, in order to access the underlying
CAMetalLayer
, we need to access thelayer
property. However, this property is marked asprotected
inCocoaWindow
, 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 inUIKitWindow
.The text was updated successfully, but these errors were encountered: