mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-25 16:06:31 +00:00
Further progress on pixel history view
* Added simple UI * Don't apply SRGB curve to alpha data * Account for clear calls not returning occlusion query results, and for depth/colour clears.
This commit is contained in:
@@ -1291,7 +1291,11 @@ namespace renderdocui.Windows
|
||||
if (value == true)
|
||||
{
|
||||
debugPixel.Enabled = debugPixelContext.Enabled = true;
|
||||
debugPixel.Text = debugPixelContext.Text = "Debug this Pixel";
|
||||
toolTip.RemoveAll();
|
||||
toolTip.SetToolTip(debugPixelContext, "Debug this pixel");
|
||||
toolTip.SetToolTip(pixelHistory, "Show history for this pixel");
|
||||
|
||||
pixelHistory.Enabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1299,7 +1303,11 @@ namespace renderdocui.Windows
|
||||
m_CurRealValue = null;
|
||||
|
||||
debugPixel.Enabled = debugPixelContext.Enabled = false;
|
||||
debugPixel.Text = debugPixelContext.Text = "RMB to Pick";
|
||||
toolTip.RemoveAll();
|
||||
toolTip.SetToolTip(debugPixelContext, "Right Click to choose a pixel");
|
||||
toolTip.SetToolTip(pixelHistory, "Right Click to choose a pixel");
|
||||
|
||||
pixelHistory.Enabled = false;
|
||||
}
|
||||
|
||||
pixelContext.Invalidate();
|
||||
@@ -2544,6 +2552,22 @@ namespace renderdocui.Windows
|
||||
render.Invalidate();
|
||||
}
|
||||
|
||||
private void pixelHistory_Click(object sender, EventArgs e)
|
||||
{
|
||||
PixelModification[] history = null;
|
||||
|
||||
m_Core.Renderer.BeginInvoke((ReplayRenderer r) =>
|
||||
{
|
||||
history = r.PixelHistory(CurrentTexture.ID, (UInt32)m_PickedPoint.X, (UInt32)m_PickedPoint.Y);
|
||||
|
||||
this.BeginInvoke(new Action(() =>
|
||||
{
|
||||
PixelHistoryView hist = new PixelHistoryView(m_Core, CurrentTexture, m_PickedPoint, history);
|
||||
hist.Show(DockPanel);
|
||||
}));
|
||||
});
|
||||
}
|
||||
|
||||
private void debugPixel_Click(object sender, EventArgs e)
|
||||
{
|
||||
ShaderDebugTrace trace = null;
|
||||
|
||||
Reference in New Issue
Block a user