Fix linux compile errors from the zvulkan switch
This commit is contained in:
parent
6a005e3a2a
commit
03ab65ab1e
7 changed files with 19 additions and 64 deletions
|
|
@ -1543,39 +1543,25 @@ std::shared_ptr<VulkanInstance> VulkanInstanceBuilder::Create()
|
|||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifdef VK_USE_PLATFORM_WIN32_KHR
|
||||
|
||||
VulkanSurfaceBuilder::VulkanSurfaceBuilder()
|
||||
{
|
||||
}
|
||||
|
||||
#ifdef VK_USE_PLATFORM_WIN32_KHR
|
||||
|
||||
VulkanSurfaceBuilder& VulkanSurfaceBuilder::Win32Window(HWND hwnd)
|
||||
{
|
||||
this->hwnd = hwnd;
|
||||
return *this;
|
||||
}
|
||||
|
||||
#elif defined(VK_USE_PLATFORM_XLIB_KHR)
|
||||
|
||||
VulkanSurfaceBuilder& VulkanSurfaceBuilder::X11Window(Display* disp, Window wind)
|
||||
{
|
||||
this->disp = disp;
|
||||
this->wind = wind;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
std::shared_ptr<VulkanSurface> VulkanSurfaceBuilder::Create(std::shared_ptr<VulkanInstance> instance)
|
||||
{
|
||||
#ifdef VK_USE_PLATFORM_WIN32_KHR
|
||||
return std::make_shared<VulkanSurface>(std::move(instance), hwnd);
|
||||
#elif defined(VK_USE_PLATFORM_XLIB_KHR)
|
||||
return std::make_shared<VulkanSurface>(std::move(instance), disp, wind);
|
||||
#else
|
||||
return std::make_shared<VulkanSurface>(std::move(instance));
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
VulkanDeviceBuilder::VulkanDeviceBuilder()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue