Hello,
IMFDXGIBuffer interface not found
Make sure you create this interface in right way like this: first create the DXGIsurface. Then call MFCreateDXGISurfaceBuffer. MFCreateDXGISurfaceBuffer returns IMFMediaBuffer object support IMFDXGIBuffer
interface.
You can use this official sample: DXGIDesktopDuplication with the following edition to check if you can query IMFDXGIBuffer
successfully:
After this line: hr = CopyBuffer->QueryInterface(__uuidof(IDXGISurface), (void **)&CopySurface);
add the following code piece:
IMFMediaBuffer* mediaBuf;
hr = MFCreateDXGISurfaceBuffer(__uuidof(ID3D11Texture2D), CopySurface, 0, TRUE, &mediaBuf);
IMFDXGIBuffer* dxgiBuf;
hr = mediaBuf->QueryInterface(__uuidof(IMFDXGIBuffer), (void**)& dxgiBuf);
Thank you!