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

Function addToRoot

qrenderdoc/Windows/TextureViewer.cpp:3037–3046  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3035}
3036
3037void addToRoot(RDTreeWidgetItem *root, const TextureDescription &t)
3038{
3039 const QVariant &res = QVariant::fromValue(t.resourceId);
3040 RDTreeWidgetItem *child =
3041 new RDTreeWidgetItem({res, t.width, t.height, (3 == t.dimension ? t.depth : t.arraysize),
3042 t.mips, t.format.Name(), QString()});
3043
3044 child->setTag(res);
3045 root->addChild(child);
3046}
3047
3048void TextureViewer::refreshTextureList(FilterType filterType, const QString &filterStr)
3049{

Callers 1

refreshTextureListMethod · 0.85

Calls 5

fromValueFunction · 0.85
NameMethod · 0.80
setTagMethod · 0.80
QStringFunction · 0.50
addChildMethod · 0.45

Tested by

no test coverage detected