Spout Unreal Engine 4.25 Crash with Ray Tracing enabled

Hello everyone,
first of all thank you very much for developing this amazing tool, I think it’s amazing!
I would like to use it in my Virtual Production workflow, we are rendering our scenes using Ray Tracing and Dx12 and I noticed that If I start the project the editor It’s crashing…
On github page it’s saying that it works only with Dx11, is there a way to use it with Dx12?

Hi Christian,

because Spout is built around sharing OpenGL textures using the NVIDIA WGL_NV_DX_interop and WGL_NV_DX_interop2 extensions, it is limited to textures created with Direct3D9ex and Direct3D11 devices.

I quickly found a forum post which explains that it is possible to share between DX11 and DX12 textures but it requires use of an “NT handle” for the shared texture.

Unfortunately this requires feature level 11.1 which is hardware dependent and so the Spout code falls back to Feature level 11.0. As a result, no applications will have textures with the required NT handle.

I assume you are using the plugin by AleDel, so it might not be straightforward. But the only way I can think at the moment without studying further is to create a separate DirecxtX 11.0 device and shared texture from which you create the sender, and copy to the DX11 shared texture from the DX12 texture.

I don’t know whether that is possible with your environment or even at all, but there is a recent DirectX section in the beta branch where you might get some ideas. Have a look at the “Basic” examples.