meson: Pass VK_USE_PLATFORM_WIN32_KHR when building volk

This commit is contained in:
Matt Borgerson 2024-12-30 20:32:40 -07:00 committed by mborgerson
parent fb7feb7b1f
commit 140b426f51
1 changed files with 3 additions and 0 deletions

View File

@ -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'),