Add void *layer to Demos AppleWindow

layer is required for "VK_EXT_metal_surface"
This commit is contained in:
Jake Turner
2026-02-08 05:54:52 +13:00
parent 305d65432e
commit 9b457ed91d
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -153,7 +153,9 @@ AppleWindow::~AppleWindow()
AppleWindow::AppleWindow(int width, int height, const char *title) : GraphicsWindow(title)
{
pAppDelegate->CreateWindow(width, height, title);
view = pAppDelegate->GetContentView();
NS::View *nsView = pAppDelegate->GetContentView();
view = nsView;
layer = nsView->layer();
}
bool AppleWindow::Init()
+1
View File
@@ -40,4 +40,5 @@ struct AppleWindow : GraphicsWindow
static MyAppDelegate *pAppDelegate;
void *view;
void *layer;
};