OSR uses D3D11
but accoring to https://docs.microsoft.com/en-us/window ... phics-apis we can open in Direct3D9Ex a shared textures previously created by non-DX9 APIs
so I'm trying it:
D3DDevice->CreateTexture(width, height, 1, 0, D3DFMT_A8R8G8B8, D3DPOOL_DEFAULT, &texture, &shared_handle)
(usege=D3DUSAGE_RENDERTARGET makes no difference)
but it says:"Direct3D9: (ERROR) :Opened and created resources don't match, unable to open the shared resource.
Has anyone tried to do something like that?