mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-08-09 08:41:31 +00:00
[idd] capture: split software and hardware frame processors
Move cadence-aware hardware capture and immediate software capture behind a common frame processor interface. Keep shared damage tracking and frame-buffer ownership in the base processor, and move stateless format, resource, and rectangle helpers into CFrameProcessorUtil. Decouple frame-buffer resources from CSwapChainProcessor by passing the device dependencies they use directly.
This commit is contained in:
@@ -36,7 +36,7 @@ private:
|
||||
ComPtr<IDXGIAdapter1 > m_adapter;
|
||||
ComPtr<ID3D11Device5 > m_device;
|
||||
ComPtr<ID3D11DeviceContext4> m_context;
|
||||
bool m_isSoftware;
|
||||
bool m_isSoftware = false;
|
||||
|
||||
public:
|
||||
CD3D11Device(LUID adapterLuid) :
|
||||
@@ -54,4 +54,4 @@ public:
|
||||
ComPtr<ID3D11DeviceContext4> GetContext() { return m_context; }
|
||||
|
||||
bool IsSoftware() { return m_isSoftware; }
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user