mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-14 09:50:06 +00:00
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:
8 files changed
+150
-10
No files matched your search
@@ -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())
|
||||
|
||||
Reference in new issue
Block a user