xrt: Add Win32 Vulkan platform define when needed

This commit is contained in:
Ryan Pavlik 2020-10-08 17:00:08 -05:00
parent 938e8cb393
commit 8b416da12b
2 changed files with 4 additions and 0 deletions

View file

@ -192,6 +192,9 @@ endif()
if(ANDROID)
set(VK_USE_PLATFORM_ANDROID_KHR TRUE)
endif()
if(WIN32)
set(VK_USE_PLATFORM_WIN32_KHR TRUE)
endif()
if(NOT MSVC)

View file

@ -13,3 +13,4 @@
#cmakedefine VK_USE_PLATFORM_WAYLAND_KHR
#cmakedefine VK_USE_PLATFORM_XCB_KHR
#cmakedefine VK_USE_PLATFORM_XLIB_XRANDR_EXT
#cmakedefine VK_USE_PLATFORM_WIN32_KHR