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

Method interpretGeneric

qrenderdoc/Windows/BufferViewer.cpp:1527–1552  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1525
1526 QString outOfBounds() const { return lit("---"); }
1527 QString interpretGeneric(int col, const ShaderConstant &el, const BufferElementProperties &prop) const
1528 {
1529 int comp = componentForIndex(col);
1530
1531 if(col >= reservedColumnCount())
1532 col -= reservedColumnCount();
1533 col = columnLookup[col];
1534
1535 if(col < config.generics.size())
1536 {
1537 if(prop.format.compType == CompType::Float)
1538 {
1539 return interpretVariant(QVariant(config.generics[col].floatValue[comp]), el, prop);
1540 }
1541 else if(prop.format.compType == CompType::SInt)
1542 {
1543 return interpretVariant(QVariant(config.generics[col].intValue[comp]), el, prop);
1544 }
1545 else if(prop.format.compType == CompType::UInt)
1546 {
1547 return interpretVariant(QVariant(config.generics[col].uintValue[comp]), el, prop);
1548 }
1549 }
1550
1551 return outOfBounds();
1552 }
1553};
1554
1555struct CachedElData

Callers

nothing calls this directly

Calls 3

interpretVariantFunction · 0.85
QVariantClass · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected