mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 13:00:32 +00:00
Apply the type hint when displaying pixel values in texture viewer
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user