UE4 Access VkImage memory

Hello everybody,

I’m currently working with Vulkan + Cuda and I want to import the Memory of a Image into Cuda.
Using vkGetInstanceProcAddr I already archived to get PFN_vkGetMemoryWin32HandleKHR.

But for the next step I have the problem that this function (PFN_vkGetMemoryWin32HandleKHR) throws an exception. I suspect that my VkDevice + VkDeviceMemory is not correct.
I get the VkDevice and VkDeviceMemory via FVulkanSurface of a SceneCaptureCamera.

Do you know other ways how I can get VkDevices and VkDeviceMemories from my SceneCaptureCamera, or Viewport?

Best,