mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-20 19:11:11 +00:00
Copy post mod colour/depth immediately, not after intervening events
This commit is contained in:
1 parent
ae2c75fb7a
commit
072b1fe74a
1 file changed
+7
-8
@@ -3601,19 +3601,18 @@ vector<PixelModification> D3D11DebugManager::PixelHistory(uint32_t frameID, vect
|
||||
SAFE_RELEASE(curBS);
|
||||
SAFE_RELEASE(curDS);
|
||||
|
||||
// deliberately include drawcall in this range so that it gets replayed with correct
|
||||
// state (otherwise this draw e.g. wouldn't write depth when it should)
|
||||
if(ev < events.size()-1)
|
||||
m_WrappedDevice->ReplayLog(frameID, events[ev], events[ev+1], eReplay_WithoutDraw);
|
||||
else
|
||||
m_WrappedDevice->ReplayLog(frameID, events[ev], events[ev], eReplay_OnlyDraw);
|
||||
// replay only draw to get immediately post-modification values
|
||||
m_WrappedDevice->ReplayLog(frameID, events[ev], events[ev], eReplay_OnlyDraw);
|
||||
|
||||
m_pImmediateContext->CopySubresourceRegion(pixstore, 0, storex*pixstoreStride + 1, storey, 0, targetres, 0, &srcbox);
|
||||
|
||||
PixelHistoryDepthCopySubresource(depthBound, copyTex ? *copyTex : NULL, pixstoreDepthUAV, depthRes,
|
||||
copyDepthSRV, copyStencilSRV, srcxyCBuf, storexyCBuf,
|
||||
storex*pixstoreStride + 1, storey);
|
||||
copyDepthSRV, copyStencilSRV, srcxyCBuf, storexyCBuf,
|
||||
storex*pixstoreStride + 1, storey);
|
||||
|
||||
if(ev < events.size()-1)
|
||||
m_WrappedDevice->ReplayLog(frameID, events[ev]+1, events[ev+1], eReplay_WithoutDraw);
|
||||
|
||||
SAFE_RELEASE(depthRes);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user