diff --git a/qrenderdoc/Windows/PixelHistoryView.cpp b/qrenderdoc/Windows/PixelHistoryView.cpp index bd9c80f55..4df59e38f 100644 --- a/qrenderdoc/Windows/PixelHistoryView.cpp +++ b/qrenderdoc/Windows/PixelHistoryView.cpp @@ -300,7 +300,7 @@ public: return tr("No Pixel\nShader\nBound"); if(mod.directShaderWrite) return tr("Tex Before\n\n") + modString(mod.preMod); - return tr("Shader Out\n\n") + modString(mod.shaderOut); + return tr("Shader Out\n\n") + modString(mod.shaderOut, 4); } } @@ -485,12 +485,15 @@ private: return QBrush(QColor::fromRgb((int)(255.0f * r), (int)(255.0f * g), (int)(255.0f * b))); } - QString modString(const ModificationValue &val) const + QString modString(const ModificationValue &val, int forceComps = 0) const { QString s; int numComps = (int)(m_Tex->format.compCount); + if(forceComps > 0) + numComps = forceComps; + static const QString colourLetterPrefix[] = {lit("R: "), lit("G: "), lit("B: "), lit("A: ")}; if(!m_IsDepth)