mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-24 06:36:08 +00:00
If a texture is typeless then account for type hint when pixel picking
This commit is contained in:
@@ -818,6 +818,12 @@ void TextureViewer::UI_UpdateStatusText()
|
||||
bool uintTex = (tex.format.compType == CompType::UInt);
|
||||
bool sintTex = (tex.format.compType == CompType::SInt);
|
||||
|
||||
if(tex.format.compType == CompType::Typeless && m_TexDisplay.typeHint == CompType::UInt)
|
||||
uintTex = true;
|
||||
|
||||
if(tex.format.compType == CompType::Typeless && m_TexDisplay.typeHint == CompType::SInt)
|
||||
sintTex = true;
|
||||
|
||||
if(m_TexDisplay.overlay == DebugOverlay::QuadOverdrawPass ||
|
||||
m_TexDisplay.overlay == DebugOverlay::QuadOverdrawDraw ||
|
||||
m_TexDisplay.overlay == DebugOverlay::TriangleSizeDraw ||
|
||||
|
||||
Reference in New Issue
Block a user