[idd] driver: use the frameSize instead of the resource size
As the resource size can be larger then the actual frame data, we need to track this seperately so that we don't waste cycles copying data the client will never use.
This commit is contained in:
1 parent
91e8440c9d
commit
9ffb800e93
3 files changed
+15
-8
No files matched your search
@@ -217,7 +217,8 @@ void CSwapChainProcessor::SwapChainNewFrame(ComPtr<IDXGIResource> acquiredBuffer
|
||||
m_dx12Device->GetCopyQueue().Reset();
|
||||
|
||||
if (m_dx12Device->IsIndirectCopy())
|
||||
m_devContext->WriteFrameBuffer(fbRes->GetMap(), 0, fbRes->GetSize(), true);
|
||||
m_devContext->WriteFrameBuffer(
|
||||
fbRes->GetMap(), 0, fbRes->GetFrameSize(), true);
|
||||
else
|
||||
m_devContext->FinalizeFrameBuffer();
|
||||
}
|
||||
Reference in new issue
Block a user