mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-08-28 17:16:46 +00:00
Mutex up SL's report resource
This commit is contained in:
@@ -148,6 +148,8 @@ bool Sl_Inputs_Dx12::evaluateState(ID3D12Device* device)
|
||||
|
||||
bool Sl_Inputs_Dx12::reportResource(const sl::ResourceTag& tag, ID3D12GraphicsCommandList* cmdBuffer, uint32_t frameId)
|
||||
{
|
||||
std::scoped_lock lock(reportResourceMutex);
|
||||
|
||||
if (!cmdBuffer)
|
||||
LOG_TRACE("cmdBuffer is null");
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@ class Sl_Inputs_Dx12
|
||||
bool distortionFieldRequired = false;
|
||||
|
||||
bool dispatched = false;
|
||||
std::mutex reportResourceMutex {};
|
||||
|
||||
uint32_t lastConstantsFrameId = UINT32_MAX;
|
||||
uint32_t lastPresentFrameId = 0;
|
||||
|
||||
Reference in New Issue
Block a user