I use Microsoft Desktop Duplication API and if my code runs on the Integrated (Intel) graphic card then everything works fine. But if I run on the dedicated card, I get an error.
I found that Microsoft does not support this usage on a dedicated card on Microsoft Hybrid system
DXGI_ERROR_UNSUPPORTED
Similar questions without solution for my needs:
The workaround is to launch the program on the Integrated card.
I would like to solve this from code.
I found that NVIDIA / AMD card can be forced from my code
extern "C" { // Hint to Hybrid laptop drivers that our app would really rather use the NVidia/AMD GPU that you've got sitting over there rather than Intel Graphics...
_declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
_declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
}
- Is there a similar option for the Intel card?
- Or is it possible to change the NVIDIA / AMD card settings from my code to run next time on Integrated GPU? I mean: start my app, which check the NVIDIA / AMD settings, and if it's not forced to use Integrated graphic (when available), then modify this setting and restart my application.
- Any other solution to use Integrated card? (not a manual solution)