[idd] updated to a VS2022 project with Windows 10 support

This commit is contained in:
Geoffrey McRae
2023-04-14 12:08:23 +10:00
parent 0c3dce3ca6
commit 0c176acf94
6 changed files with 68 additions and 24 deletions

View File

@@ -60,6 +60,20 @@ void CSwapChainProcessor::SwapChainThreadCore()
return;
}
if (IDD_IS_FUNCTION_AVAILABLE(IddCxSetRealtimeGPUPriority))
{
DBGPRINT("Using IddCxSetRealtimeGPUPriority");
IDARG_IN_SETREALTIMEGPUPRIORITY arg;
arg.pDevice = dxgiDevice.Get();
if (FAILED(IddCxSetRealtimeGPUPriority(m_hSwapChain, &arg)))
DBGPRINT("Failed to set realtime GPU thread priority");
}
else
{
DBGPRINT("Using SetGPUThreadPriority");
dxgiDevice->SetGPUThreadPriority(7);
}
IDARG_IN_SWAPCHAINSETDEVICE setDevice = {};
setDevice.pDevice = dxgiDevice.Get();
@@ -69,7 +83,7 @@ void CSwapChainProcessor::SwapChainThreadCore()
if (FAILED(hr))
{
DBGPRINT("IddCxSwapChainSetDevice Failed");
DBGPRINT("IddCxSwapChainSetDevice Failed (%08x)", hr);
return;
}