Don't offer option to debug pixel on events that are not draws

This commit is contained in:
baldurk
2025-09-17 17:09:39 +01:00
parent 52cb002dd7
commit 998b1c7ee0
+8
View File
@@ -913,6 +913,14 @@ void PixelHistoryView::on_events_customContextMenuRequested(const QPoint &pos)
debugAction.setEnabled(false);
}
const ActionDescription *action = m_Ctx.GetAction(tag.eventId);
if(action == NULL ||
(action->flags & (ActionFlags::Drawcall | ActionFlags::MeshDispatch)) == ActionFlags::NoFlags)
{
debugAction.setToolTip(tr("This event has no shader use"));
debugAction.setEnabled(false);
}
// can't check if the shader supports debugging here because we don't have its details.
QObject::connect(&jumpAction, &QAction::triggered, [this, tag]() { jumpToPrimitive(tag); });