admin管理员组文章数量:1391955
I have a laptop with an integrated Intel graphics card and an NVIDIA T1000 graphics card.
I set the NVIDIA card as the preferred graphic processor in the Managed 3D in NVIDIA Control Panel.
However, since doing that,
lDxgiOutput1->DuplicateOutput(mlDevice, &mComPtrlDeskDupl)
fails with the error hr 0x887a0004 (DXGI_ERROR_UNSUPPORTED): The specified device interface or feature level is not supported on this system.
EnumAdapters1 selects NVIDIA as the first lDxgiAdapter option when it's set to preferred and Intel lDxgiAdapter when NVIDIA is not set as preferred.
If I choose the Intel lDxgiAdapter using EnumAdapters1 (which is the second one), then the following fails:
iOutput = 0;
lDxgiAdapter->EnumOutputs(iOutput, &lDxgiOutput);
with hr = 0x887a0002 (DXGI_ERROR_NOT_FOUND) : The object was not found
However, if I choose the NVIDIA lDxgiAdapter using EnumAdapters1, this works:
lDxgiOutput->QueryInterface(IID_PPV_ARGS(&lDxgiOutput1));
lDxgiAdapter->EnumOutputs(iOutput, &lDxgiOutput);
But as said before, this fails:
lDxgiOutput1->DuplicateOutput(mlDevice, &mComPtrlDeskDupl);
with hr 0x887a0004: The specified device interface or feature level is not supported on this system.
I want to duplicate the desktop while NVIDIA is set as the preferred adapter (as is the case on some systems). However, as explained, it fails with DuplicateOutput.
I don't mind using the Intel lDxgiAdapter in that case, but when the chosen lDxgiAdapter is Intel (using EnumAdapters1), it fails on EnumOutputs.
When the preferred adapter is set to Intel, Intel is selected as the first lDxgiAdapter, and both EnumOutputs and DuplicateOutput work for the Intel lDxgiAdapter. But I want to make it work when NVIDIA is set as the preferred adapter as well.
本文标签:
版权声明:本文标题:directx - DuplicateOutput Fails with NVIDIA set as Preferred graphic Adapter on Dual Graphics System - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744680959a2619404.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论