[c++] Hot to get access to native ID3D11Texture2D* of render target (on windows)?

Godot Version

4.2.2

Question

Subj. Hot to get access to native ID3D11Texture2D* of render target (on windows)?
I need it to send to dll that manipulates ID3D11Texture2D* data.

There may be some leads here, and there is an active pull request too with build instructions. Which it looks like you have to build Godot with a D3D12 option.

Oh, godot is using Vulkan. Which explains why I couldn’t find any ID3D11Texture2D reference in the code.
Which means my external library wont work.

Ok how do I stream godot render target textures as webcam source?
I had this lib in unreal that I used to do so, but cant seem find any solution for godot.