mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 09:00:44 +00:00
Add icons for texture viewer pixel history/debug buttons
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#include <math.h>
|
||||
#include <QAction>
|
||||
#include <QMenu>
|
||||
#include "Code/Resources.h"
|
||||
#include "toolwindowmanager/ToolWindowManager.h"
|
||||
#include "ui_PixelHistoryView.h"
|
||||
|
||||
@@ -838,6 +839,8 @@ void PixelHistoryView::on_events_customContextMenuRequested(const QPoint &pos)
|
||||
|
||||
QAction jumpAction(tr("&Go to primitive %1 at Event %2").arg(tag.primitive).arg(tag.eventId), this);
|
||||
|
||||
jumpAction.setIcon(Icons::find());
|
||||
|
||||
QString debugText;
|
||||
|
||||
if(tag.primitive == ~0U)
|
||||
@@ -858,6 +861,8 @@ void PixelHistoryView::on_events_customContextMenuRequested(const QPoint &pos)
|
||||
|
||||
QAction debugAction(debugText, this);
|
||||
|
||||
debugAction.setIcon(Icons::wrench());
|
||||
|
||||
contextMenu.addAction(&debugAction);
|
||||
|
||||
if(!m_Ctx.APIProps().shaderDebugging)
|
||||
|
||||
Reference in New Issue
Block a user