From 140b426f512b030582185f17311fc4efbf98377c Mon Sep 17 00:00:00 2001 From: Matt Borgerson Date: Mon, 30 Dec 2024 20:32:40 -0700 Subject: [PATCH] meson: Pass VK_USE_PLATFORM_WIN32_KHR when building volk --- meson.build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meson.build b/meson.build index fd2912c80f..7c54c0be1f 100644 --- a/meson.build +++ b/meson.build @@ -1216,6 +1216,9 @@ if vulkan.found() volk_opts = cmake.subproject_options() volk_opts.add_cmake_defines({'VOLK_STATIC_DEFINES': 'VK_NO_PROTOTYPES'}) + if targetos == 'windows' + volk_opts.append_compile_args('c', '-DVK_USE_PLATFORM_WIN32_KHR=1') + endif volk_subproj = cmake.subproject('volk', options: volk_opts) volk = declare_dependency(compile_args: ['-DVK_NO_PROTOTYPES'], include_directories: volk_subproj.include_directories('volk'),