Display a message when we can't debug a pixel shader and show a history

This commit is contained in:
baldurk
2025-10-08 15:04:49 +01:00
parent 03b06b7e3c
commit 9e0d6f18d6
5 changed files with 33 additions and 6 deletions
+16 -5
View File
@@ -666,12 +666,13 @@ PixelHistoryView::PixelHistoryView(ICaptureContext &ctx, ResourceId id, QPoint p
channelStr = lit("Alpha");
QString text;
text = tr("Preview colours displayed in visible range %1 - %2 with %3 visible.\n\n")
.arg(Formatter::Format(display.rangeMin))
.arg(Formatter::Format(display.rangeMax))
.arg(channelStr);
text += tr("Preview colours displayed in visible range %1 - %2 with %3 visible.<br><br>")
.arg(Formatter::Format(display.rangeMin))
.arg(Formatter::Format(display.rangeMax))
.arg(channelStr);
text +=
tr("Double click to jump to an event.\n"
tr("Double click to jump to an event.<br>"
"Right click to debug an event, or hide failed events.");
ui->label->setText(text);
@@ -717,6 +718,16 @@ PixelHistoryView::~PixelHistoryView()
delete ui;
}
void PixelHistoryView::SetFailedDebug()
{
QString text = ui->label->text();
text = tr("<b>Pixel shader debug failed</b> - most likely this is caused by no write to the "
"pixel at the current event.<br>"
"Displaying pixel history to find the event which did write.<br><br>") +
text;
ui->label->setText(text);
}
void PixelHistoryView::enableTimelineHighlight()
{
if(m_Ctx.HasTimelineBar())