Native Texture Sharing/Exchange


I’m looking to integrate a plugin that renders in a separate DirectX context. Is there any way to get a texture into UE4 based on an actual ID3D11Texture2D pointer? Or vice versa? This pull request and the response that was given to it makes it sound like this isn’t possible:

I’m just looking for confirmation I’m not overlooking something and that copying the texture to the CPU and then uploading it on the unreal side is the only way to accomplish this? At least without modifying the source of the engine?


It looks like unreal now has a mechanic to do this in ExternalTexture.h, you can also see how they’re using it in the AR stuff for usage examples