mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 09:00:44 +00:00
Add void *layer to Demos AppleWindow
layer is required for "VK_EXT_metal_surface"
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -40,4 +40,5 @@ struct AppleWindow : GraphicsWindow
|
||||
|
||||
static MyAppDelegate *pAppDelegate;
|
||||
void *view;
|
||||
void *layer;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user