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

Method SelectPreview

qrenderdoc/Windows/TextureViewer.cpp:726–748  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

724}
725
726void TextureViewer::SelectPreview(ResourcePreview *prev)
727{
728 Following follow = prev->property("f").value<Following>();
729
730 for(ResourcePreview *p : ui->outputThumbs->thumbs())
731 p->setSelected(false);
732
733 for(ResourcePreview *p : ui->inputThumbs->thumbs())
734 p->setSelected(false);
735
736 m_Following = Following(follow);
737 prev->setSelected(true);
738
739 UI_UpdateCachedTexture();
740
741 ResourceId id = m_Following.GetResourceId(m_Ctx);
742
743 if(id != ResourceId())
744 {
745 UI_OnTextureSelectionChanged(false);
746 ui->renderContainer->show();
747 }
748}
749
750void TextureViewer::RT_FetchCurrentPixel(IReplayController *r, uint32_t x, uint32_t y,
751 PixelValue &pickValue, PixelValue &realValue)

Callers

nothing calls this directly

Calls 6

FollowingClass · 0.85
propertyMethod · 0.80
ResourceIdFunction · 0.50
setSelectedMethod · 0.45
GetResourceIdMethod · 0.45
showMethod · 0.45

Tested by

no test coverage detected