mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
In Pixel History View do not force shaderOut to show four components
Matches the formatting used for "Tex Before" and "Tex After"
This commit is contained in:
@@ -305,7 +305,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, 4);
|
||||
return tr("Shader Out\n\n") + modString(mod.shaderOut);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -514,7 +514,7 @@ private:
|
||||
(int)(255.0f * b + 0.5f)));
|
||||
}
|
||||
|
||||
QString modString(const ModificationValue &val, int forceComps = 0) const
|
||||
QString modString(const ModificationValue &val) const
|
||||
{
|
||||
QString s;
|
||||
|
||||
@@ -523,9 +523,6 @@ private:
|
||||
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user