Getting a hardware pointer/handle to a texture

I’m trying to implement Spout under windows and Syphon under OSX. Both of which are frameworks which allow realtime video sharing between applications.

In the short term I would just like to just get this working, at the minute I’m focusing on Spout for windows. I’ve built the Spout SDK into a lib and linked it to Unreal. In Spout I’m creating a D3D11 Texture, which I need to do a blit to from an Unreal Texture. To do this I need to pass the Texture Handle to Spout.

Currently I’m using a ScreenCapture2D with a Render Texture to access a Utexture2D, although perhaps there’s a more efficient method for this.

In the long term I’d like to create an Unreal Plugin. If a workaround would require a change in engine code, do you think it’s the sort of change that is likely to be added if a pull request was made?

Thanks,

Harvey