Closed dmhud closed 2 months ago
That functionality is exclusive to Direct3D11, so having it in common API is not ideal. I would suggest creating the texture using raw Direct3D11 and then attaching it to Diligent texture.
Thanks for link, I'll try to use it
Did you make it work?
@dmhud Let me know if interoperability with D3D11 did not work for you.
Is it possible add suport for D3D11_RESOURCE_MISC_SHARED flag for create texture sharing with DX9 (BackBuffer of D3DImage in WPF ) for rendering directly in GUI window? Or maybe exists another way for sharing 2d texture for this purpose?
Possible solution in Diligent below. Is it good?
D3D11TypeConversions.h
Texture.h
DX9 shared texture creation:
Create shared texture (DX11) and shared handle for DX9:
OS: Windows 10
IDE/Compiler version: Visual Studio 2017 x64 Version 15.9.60
CMake version: 3.27.1
Diligent version: git clone --branch v2.5.4 --recursive https://github.com/DiligentGraphics/DiligentEngine.git