mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-11 01:48:09 +00:00
[idd] driver: handle command queue failures gracefully
This commit is contained in:
@@ -26,15 +26,19 @@ class CD3D12CommandQueue
|
||||
UINT64 m_fenceValue = 0;
|
||||
bool m_needsReset = false;
|
||||
|
||||
typedef void (*CompletionFunction)(CD3D12CommandQueue * queue, void * param1, void * param2);
|
||||
typedef void (*CompletionFunction)(CD3D12CommandQueue * queue,
|
||||
bool result, void * param1, void * param2);
|
||||
|
||||
CompletionFunction m_completionCallback = nullptr;
|
||||
void * m_completionParams[2];
|
||||
bool m_completionResult = true;
|
||||
|
||||
void OnCompletion()
|
||||
{
|
||||
if (m_completionCallback)
|
||||
m_completionCallback(
|
||||
this,
|
||||
m_completionResult,
|
||||
m_completionParams[0],
|
||||
m_completionParams[1]);
|
||||
m_pending = false;
|
||||
@@ -71,4 +75,4 @@ class CD3D12CommandQueue
|
||||
|
||||
ComPtr<ID3D12CommandQueue > GetCmdQueue() { return m_queue; }
|
||||
ComPtr<ID3D12GraphicsCommandList> GetGfxList() { return m_gfxList; }
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user