Copying a GPU resource to a GPU resource?

Thank you for your comment. I haven’t tried in detail yet, but (do you think) it is possible to give a device pointer from CUDA to UE4’s pipeline without custom engine build?
If we can get ID3D11Device* and ID3D11Resource* from RHI, I think I can communicate between CUDA and UE4 directly through some CUDA - DirectX interop functions provided by CUDA.
However, I think we first need to know (on Windows) which DirectX version (11 or 12) has been used in a UE4 project from the code…