Open qq978358810 opened 5 months ago
hr = dxgiOutput1->DuplicateOutput(d3d11device.Get(), dxgi_outputduplication.GetAddressOf());
std::cout<<(int)hr<<std::endl; if (FAILED(hr)) { /* 0x887a0004: NVIDIA控制面板-->全局设置--首选图形处理器(自动选择) */ printf("[DXGIScreenCapture] Failed to get duplicate output.\n"); Destroy(); return false; }
hr = dxgiOutput1->DuplicateOutput(d3d11device.Get(), dxgi_outputduplication.GetAddressOf());