| 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 | |
| 1555 | struct CachedElData |
nothing calls this directly
no test coverage detected