Implement location tracking and goto for GS printfs

* We can't debug geometry shaders but we can scroll to them, as long as we have
  the primitive. We can't differentiate instances currently without passing that
  data through from the VS (and through tessellation, if it exists).
* This also disables the debug and goto buttons for printfs from shader stages
  that don't support those operations.
This commit is contained in:
baldurk committed 2022-07-11 13:02:23 +01:00
1 parent d39197a499
commit 7bdf26d329
8 files changed
+150 -10

No files matched your search

+10
View File
@@ -4150,6 +4150,16 @@ void BufferViewer::ScrollToColumn(RDTableView *view, int column)
view->verticalScrollBar()->setValue(vs);
}
void BufferViewer::ShowMeshData(MeshDataStage stage)
{
if(stage == MeshDataStage::VSIn)
ToolWindowManager::raiseToolWindow(ui->vsinData);
else if(stage == MeshDataStage::VSOut)
ToolWindowManager::raiseToolWindow(ui->vsoutData);
else if(stage == MeshDataStage::GSOut)
ToolWindowManager::raiseToolWindow(ui->gsoutData);
}
void BufferViewer::SetCurrentInstance(int32_t instance)
{
if(ui->instance->isVisible() && ui->instance->isEnabled())