[idd] CDebug: implement new debug print class and write to a file

This commit is contained in:
Geoffrey McRae
2025-03-16 16:11:21 +00:00
parent 4f2eb984d3
commit 0db9d3a27b
17 changed files with 260 additions and 131 deletions

View File

@@ -21,7 +21,7 @@
#include "CSwapChainProcessor.h"
#include <avrt.h>
#include "Debug.h"
#include "CDebug.h"
#define LOCK(lock) \
while (InterlockedCompareExchange((volatile LONG*)&(lock), 1, 0) != 0) {};
@@ -111,7 +111,7 @@ void CSwapChainProcessor::SwapChainThreadCore()
hr = IddCxSwapChainSetDevice(m_hSwapChain, &setDevice);
if (FAILED(hr))
{
DBGPRINT("IddCxSwapChainSetDevice Failed (%08x)", hr);
DBGPRINT_HR(hr, "IddCxSwapChainSetDevice Failed");
return;
}