mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-21 06:51:35 +00:00
Duplicate up pixel modifications based on # frags
This commit is contained in:
@@ -4214,6 +4214,21 @@ vector<PixelModification> D3D11DebugManager::PixelHistory(uint32_t frameID, vect
|
||||
}
|
||||
}
|
||||
|
||||
for(size_t h=0; h < history.size(); )
|
||||
{
|
||||
int32_t frags = RDCMAX(1, history[h].shaderOut.col.value_i[0]);
|
||||
|
||||
PixelModification mod = history[h];
|
||||
|
||||
for(int32_t f=1; f < frags; f++)
|
||||
history.insert(history.begin()+h+1, mod);
|
||||
|
||||
for(int32_t f=0; f < frags; f++)
|
||||
history[h+f].fragIndex = f;
|
||||
|
||||
h += frags;
|
||||
}
|
||||
|
||||
m_pImmediateContext->Unmap(pixstoreDepthReadback, 0);
|
||||
m_pImmediateContext->Unmap(pixstore, 0);
|
||||
|
||||
|
||||
@@ -213,6 +213,9 @@ struct PixelModification
|
||||
{
|
||||
uint32_t eventID;
|
||||
|
||||
uint32_t fragIndex;
|
||||
uint32_t primitiveID;
|
||||
|
||||
ModificationValue preMod;
|
||||
ModificationValue shaderOut;
|
||||
ModificationValue postMod;
|
||||
|
||||
@@ -472,6 +472,9 @@ namespace renderdoc
|
||||
{
|
||||
public UInt32 eventID;
|
||||
|
||||
public UInt32 fragIndex;
|
||||
public UInt32 primitiveID;
|
||||
|
||||
[CustomMarshalAs(CustomUnmanagedType.CustomClass)]
|
||||
public ModificationValue preMod;
|
||||
[CustomMarshalAs(CustomUnmanagedType.CustomClass)]
|
||||
|
||||
Reference in New Issue
Block a user