Apply the type hint when displaying pixel values in texture viewer

This commit is contained in:
baldurk
2017-01-12 13:03:17 +00:00
parent 94b34f6718
commit 01c3a76625
+6
View File
@@ -2079,6 +2079,12 @@ namespace renderdocui.Windows
bool uintTex = (tex.format.compType == FormatComponentType.UInt);
bool sintTex = (tex.format.compType == FormatComponentType.SInt);
if (tex.format.compType == FormatComponentType.None && m_TexDisplay.typeHint == FormatComponentType.UInt)
uintTex = true;
if (tex.format.compType == FormatComponentType.None && m_TexDisplay.typeHint == FormatComponentType.SInt)
sintTex = true;
if (m_TexDisplay.overlay == TextureDisplayOverlay.QuadOverdrawPass ||
m_TexDisplay.overlay == TextureDisplayOverlay.QuadOverdrawDraw)
{