Download

Native Texture Sharing/Exchange

Hello,

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: https://github.com/EpicGames/UnrealEngine/pull/650

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?

Thanks,
Andrew.

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