mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Identify depth textures by depth format, not just having DSV flag
This commit is contained in:
@@ -204,6 +204,7 @@ bool ReplayOutput::AddThumbnail(void *wnd, ResourceId texID)
|
||||
if(m_pRenderer->m_Textures[t].ID == texID)
|
||||
{
|
||||
depthMode = (m_pRenderer->m_Textures[t].creationFlags & eTextureCreate_DSV) > 0;
|
||||
depthMode |= (m_pRenderer->m_Textures[t].format.compType == eCompType_Depth);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1893,7 +1893,7 @@ namespace renderdocui.Windows
|
||||
|
||||
if (tex == null) return;
|
||||
|
||||
bool dsv = ((tex.creationFlags & TextureCreationFlags.DSV) != 0);
|
||||
bool dsv = ((tex.creationFlags & TextureCreationFlags.DSV) != 0) || (tex.format.compType == FormatComponentType.Depth);
|
||||
bool uintTex = (tex.format.compType == FormatComponentType.UInt);
|
||||
bool sintTex = (tex.format.compType == FormatComponentType.SInt);
|
||||
|
||||
@@ -2073,7 +2073,11 @@ namespace renderdocui.Windows
|
||||
m_TexDisplay.linearDisplayAsGamma = gammaDisplay.Checked;
|
||||
}
|
||||
|
||||
if (tex != null && (tex.creationFlags & TextureCreationFlags.DSV) > 0 &&
|
||||
bool dsv = false;
|
||||
if(tex != null)
|
||||
dsv = ((tex.creationFlags & TextureCreationFlags.DSV) != 0) || (tex.format.compType == FormatComponentType.Depth);
|
||||
|
||||
if (dsv &&
|
||||
(string)channels.SelectedItem != "Custom")
|
||||
{
|
||||
customRed.Visible = false;
|
||||
|
||||
Reference in New Issue
Block a user