diff --git a/CMakeLists.txt b/CMakeLists.txt index 8355ee634..563d780d2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/src/xrt/include/xrt/xrt_config_vulkan.h.cmake_in b/src/xrt/include/xrt/xrt_config_vulkan.h.cmake_in index f81a1d359..f364a3024 100644 --- a/src/xrt/include/xrt/xrt_config_vulkan.h.cmake_in +++ b/src/xrt/include/xrt/xrt_config_vulkan.h.cmake_in @@ -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