VK_KHR_external_memory and/or VK_KHR_external_memory_win32

Does anybody have a working sample demonstrating import of a D3D11 texture for a VkBuffer or VkImage? I’ve been struggling to get this working with just the API documentation. It’d be great if I had a working sample.

Thanks in advance!

I was looking for something similar and found this (Vulkan-OpenGL interop example); not exactly what you’re looking for but it may be a start.

Hi there! I wrote some code to import a shared D3D11 texture to Vulkan, see scenery/Hololens.kt at master · scenerygraphics/scenery · GitHub – the code is not C++, but Kotlin. Structurally, it’s pretty similar, so maybe that helps you.

On the Direct3D side, the handle you import there has to be created with CreateSharedHandle.

cheers!