[idd] initial indirect driver with Looking Glass monitor

This commit is contained in:
Geoffrey McRae
2023-04-09 12:16:33 +10:00
parent 11676d3d56
commit 75da66a090
21 changed files with 1189 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
#pragma once
#include "Direct3DDevice.h"
#include <Windows.h>
#include <wrl.h>
#include <IddCx.h>
#include <memory>
class CSwapChainProcessor
{
private:
IDDCX_SWAPCHAIN m_hSwapChain;
std::shared_ptr<Direct3DDevice> m_device;
HANDLE m_newFrameEvent;
Microsoft::WRL::Wrappers::HandleT<
Microsoft::WRL::Wrappers::HandleTraits::HANDLENullTraits> m_thread;
Microsoft::WRL::Wrappers::Event m_terminateEvent;
static DWORD CALLBACK RunThread(LPVOID argument);
void Run();
void RunCore();
public:
CSwapChainProcessor(IDDCX_SWAPCHAIN hSwapChain,
std::shared_ptr<Direct3DDevice> device, HANDLE newFrameEvent);
~CSwapChainProcessor();
};