mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 21:30:53 +00:00
Display a message when we can't debug a pixel shader and show a history
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user