Duplicate up pixel modifications based on # frags

This commit is contained in:
baldurk
2014-08-24 01:00:18 +01:00
parent 1c4eccd06e
commit d55be5f687
3 changed files with 21 additions and 0 deletions
+15
View File
@@ -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);
+3
View File
@@ -213,6 +213,9 @@ struct PixelModification
{
uint32_t eventID;
uint32_t fragIndex;
uint32_t primitiveID;
ModificationValue preMod;
ModificationValue shaderOut;
ModificationValue postMod;
+3
View File
@@ -472,6 +472,9 @@ namespace renderdoc
{
public UInt32 eventID;
public UInt32 fragIndex;
public UInt32 primitiveID;
[CustomMarshalAs(CustomUnmanagedType.CustomClass)]
public ModificationValue preMod;
[CustomMarshalAs(CustomUnmanagedType.CustomClass)]