I was able to link CUDA, use a kernel and use the result in Unreal.
I use CUDA to decode an mp4 in CUDA.
However, in order to use the frame, I am force to go through the CPU, so I have VRAM->RAM->VRAM route instead of VRAM->VRAM route.
I am able to get the native texture of UTexture2D, which is ID3D11Texture interfrace.
However, if I try to map a CUDA graphics resource into the ID3D11Texture the function fails.
Any idea how to copy a CUDA buffer content into a UTexture2D in unreal?