Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to access CAMetalLayer with CocoaWindow due to protected layer property #25

Open
fathonyfath opened this issue Mar 17, 2023 · 0 comments

Comments

@fathonyfath
Copy link

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.

@fathonyfath 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant