MCPcopy Create free account
hub / github.com/baldurk/renderdoc / OnCaptureLoaded

Method OnCaptureLoaded

qrenderdoc/Windows/ResourceInspector.cpp:484–502  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

482}
483
484void ResourceInspector::OnCaptureLoaded()
485{
486 ui->renameResource->setEnabled(true);
487
488 if(m_Ctx.FrameInfo().containsAnnotations && m_AnnotationView == NULL)
489 {
490 m_AnnotationView = new AnnotationDisplay(m_Ctx, false, this);
491 m_AnnotationView->setWindowTitle(tr("Resource Annotations"));
492
493 ui->dockarea->addToolWindow(
494 m_AnnotationView,
495 ToolWindowManager::AreaReference(ToolWindowManager::BottomOf,
496 ui->dockarea->areaOf(ui->relatedResources), 0.5f));
497 ui->dockarea->setToolWindowProperties(m_AnnotationView, ToolWindowManager::HideCloseButton);
498 }
499
500 m_ResourceModel->reset();
501 m_ResourceCacheID = m_Ctx.ResourceNameCacheID();
502}
503
504void ResourceInspector::SetResourceNameDisplay(const QString &name)
505{

Callers

nothing calls this directly

Calls 8

AreaReferenceClass · 0.85
setWindowTitleMethod · 0.80
areaOfMethod · 0.80
trFunction · 0.50
addToolWindowMethod · 0.45
resetMethod · 0.45
ResourceNameCacheIDMethod · 0.45

Tested by

no test coverage detected