Accelerated OSR with Direct3D9EX API

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Accelerated OSR with Direct3D9EX API

Postby Teotihuacan » Wed Oct 31, 2018 8:58 am

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?
Teotihuacan
Techie
 
Posts: 48
Joined: Sun Sep 09, 2018 6:23 am

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 18 guests