mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-28 16:45:38 +00:00
Add stub ToStr copied functions to fix up some implementations
* Eventually the main project's ToStr will move into a header file so that we don't have to duplicate any code.
This commit is contained in:
@@ -1000,7 +1000,7 @@ void TextureViewer::UI_UpdateTextureDetails()
|
||||
|
||||
if(current.format.compType != m_TexDisplay.typeHint && m_TexDisplay.typeHint != eCompType_None)
|
||||
{
|
||||
status += tr(" Viewed as TODO ToStr"); // m_TexDisplay.typeHint.Str();
|
||||
status += tr(" Viewed as %1").arg(ToQStr(m_TexDisplay.typeHint));
|
||||
}
|
||||
|
||||
ui->texStatusDim->setText(status);
|
||||
@@ -1747,12 +1747,11 @@ void TextureViewer::AddResourceUsageEntry(QMenu &menu, uint32_t start, uint32_t
|
||||
QAction *item = NULL;
|
||||
|
||||
if(start == end)
|
||||
item = new QAction("EID " + QString::number(start) + ": " +
|
||||
"TODO ToStr" /*usage.Str(m_Core.APIProps.pipelineType)*/,
|
||||
this);
|
||||
item = new QAction(
|
||||
"EID " + QString::number(start) + ": " + ToQStr(usage, m_Ctx->APIProps().pipelineType), this);
|
||||
else
|
||||
item = new QAction("EID " + QString::number(start) + "-" + QString::number(end) + ": " +
|
||||
"TODO ToStr" /*usage.Str(m_Core.APIProps.pipelineType)*/,
|
||||
ToQStr(usage, m_Ctx->APIProps().pipelineType),
|
||||
this);
|
||||
|
||||
QObject::connect(item, &QAction::triggered, this, &TextureViewer::texContextItem_triggered);
|
||||
|
||||
Reference in New Issue
Block a user