directx – Create DXGIFactory – Stack Overflow
Any reason to create IDXGIFactory1 and then query IDXGIFactory5:
CreateDXGIFactory1(IID_PPV_ARGS(&factory));
factory->QueryInterface(IID_PPV_ARGS(&factory5));
Instead of just create IDXGIFactory5:
CreateDXGIFactory1(IID_PPV_ARGS(&factory5));
?
Why might I need two different interface versions (factory1 and factory5) in the same application when factory5 has all methods of factory1 (I think it’s not for backward compatibility)?
Same question for ID3D11Device, ID3D11Device5 and ID3D11DeviceContext, ID3D11DeviceContext4.
Read more here: Source link
