Open transform feedback buffers on double click from GL pipe viewer

This commit is contained in:
baldurk
2017-01-02 15:20:43 +00:00
parent 903898213d
commit 6aee676386
2 changed files with 13 additions and 1 deletions
@@ -2829,7 +2829,11 @@
this.gsFeedback.ViewOptions.Indent = 0;
this.gsFeedback.ViewOptions.ShowLine = false;
this.gsFeedback.ViewOptions.ShowPlusMinus = false;
this.gsFeedback.NodeDoubleClicked += new TreelistView.TreeListView.NodeDoubleClickedHandler(this.textureCell_CellDoubleClick);
this.gsFeedback.NodeClicked += new TreelistView.TreeListView.NodeClickedHandler(this.textureCell_CellDoubleClick);
this.gsFeedback.KeyDown += new System.Windows.Forms.KeyEventHandler(this.defaultCopyPaste_KeyDown);
this.gsFeedback.Leave += new System.EventHandler(this.disableSelection_Leave);
this.gsFeedback.MouseClick += new System.Windows.Forms.MouseEventHandler(this.hideDisabledEmpty_MouseClick);
//
// label14
//
@@ -1705,7 +1705,15 @@ namespace renderdocui.Windows.PipelineState
viewer.ViewTexture(tex.ID, true);
}
}
else if(tag is ReadWriteTag)
else if (tag is FetchBuffer)
{
FetchBuffer buf = (FetchBuffer)tag;
var viewer = new BufferViewer(m_Core, false);
viewer.ViewRawBuffer(true, 0, ulong.MaxValue, buf.ID);
viewer.Show(m_DockContent.DockPanel);
}
else if (tag is ReadWriteTag)
{
ReadWriteTag rwtag = (ReadWriteTag)tag;
FetchBuffer buf = rwtag.buf;