[idd] initial indirect driver with Looking Glass monitor
This commit is contained in:
1 parent
11676d3d56
commit
75da66a090
21 files changed
+1189
No files matched your search
@@ -0,0 +1,34 @@
|
||||
#include "CIndirectMonitorContext.h"
|
||||
#include "Direct3DDevice.h"
|
||||
|
||||
CIndirectMonitorContext::CIndirectMonitorContext(_In_ IDDCX_MONITOR monitor) :
|
||||
m_monitor(monitor)
|
||||
{
|
||||
OutputDebugStringA(__FUNCTION__);
|
||||
}
|
||||
|
||||
CIndirectMonitorContext::~CIndirectMonitorContext()
|
||||
{
|
||||
OutputDebugStringA(__FUNCTION__);
|
||||
m_thread.reset();
|
||||
}
|
||||
|
||||
void CIndirectMonitorContext::AssignSwapChain(IDDCX_SWAPCHAIN swapChain, LUID renderAdapter, HANDLE newFrameEvent)
|
||||
{
|
||||
OutputDebugStringA(__FUNCTION__);
|
||||
m_thread.reset();
|
||||
auto device = std::make_shared<Direct3DDevice>(renderAdapter);
|
||||
if (FAILED(device->Init()))
|
||||
{
|
||||
WdfObjectDelete(swapChain);
|
||||
return;
|
||||
}
|
||||
|
||||
m_thread.reset(new CSwapChainProcessor(swapChain, device, newFrameEvent));
|
||||
}
|
||||
|
||||
void CIndirectMonitorContext::UnassignSwapChain()
|
||||
{
|
||||
OutputDebugStringA(__FUNCTION__);
|
||||
m_thread.reset();
|
||||
}
|
||||
Reference in new issue
Block a user