I am trying to write an EVR for Media Foundation using DirectX 11 on Windows 10 (Desktop). The only one solution I have found so far is here Unfortunately I don't know (as many others) how to correctly use it. Does somebody can point me to the right direction on how to combine MF with DirectX 11/12 please?
I am using the code for activate my EVR:
hr = MFCreateVideoRendererActivate(hwndVideo, &pRendererActivate);
hr = pRendererActivate->SetGUID(MF_ACTIVATE_CUSTOM_VIDEO_PRESENTER_CLSID, CLSID_DX11VideoRenderer);
I came to the point where MF asks for GetDeviceID and an exception is raised in kernel.dll. I think that there is a mismatch between a mixer and renderer device. Default device for them is DX9. In my example I must provide a DirectX 11 device CLSID.