Linker problem when importing D3D fence into a vulkan semaphore

I’m using the extension VK_KHR_external_semaphore_win32, specifically the function vkImportSemaphoreWin32HandleKHR to import a D3D fence into a Vulkan Semaphore. The linker doesn’t find this function. Is there another .lib beside vulkan-1.lib that is required? I checked the vulkan-1.lib and this function doesn’t seem to be present, however it seems to be present in VkLayer_utils.lib. If I include this library the linked still can’t find it. Anyone experienced the same issue?

It’s an extension function; your linker isn’t supposed to find it, since by definition, not every implementation will support it. You have to load extension functions manually from devices that support them.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.