From 01c3a7662589689168b0ca927fb49de15feddd16 Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 12 Jan 2017 13:03:17 +0000 Subject: [PATCH] Apply the type hint when displaying pixel values in texture viewer --- renderdocui/Windows/TextureViewer.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/renderdocui/Windows/TextureViewer.cs b/renderdocui/Windows/TextureViewer.cs index dc58f157c..aa93269a0 100644 --- a/renderdocui/Windows/TextureViewer.cs +++ b/renderdocui/Windows/TextureViewer.cs @@ -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) {