mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-28 21:57:57 +03:00
18 lines
361 B
C++
18 lines
361 B
C++
#include "vulkanwindow.h"
|
|
#include "macos/LayerFromView.h"
|
|
|
|
VulkanWindow::VulkanWindow(QWindow* parent)
|
|
: OutputWindow(parent)
|
|
{
|
|
setSurfaceType(QWindow::VulkanSurface);
|
|
#ifdef __APPLE__
|
|
m_metalLayer = GetLayerFromView(reinterpret_cast<void*>(winId()));
|
|
#endif
|
|
}
|
|
|
|
#ifdef __APPLE__
|
|
void* VulkanWindow::GetMetalLayer() const
|
|
{
|
|
return m_metalLayer;
|
|
}
|
|
#endif
|