mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-23 15:06:32 +00:00
Fix buffer bound inputs showing up as "Unbound"/not rendering thumbnail
This commit is contained in:
@@ -1204,6 +1204,11 @@ namespace renderdocui.Windows
|
||||
if (t.ID == Texs[i])
|
||||
tex = t;
|
||||
|
||||
FetchBuffer buf = null;
|
||||
foreach (var b in m_Core.CurBuffers)
|
||||
if (b.ID == Texs[i])
|
||||
buf = b;
|
||||
|
||||
if (tex != null)
|
||||
{
|
||||
prev.Init(!tex.customName && bindName.Length > 0 ? bindName : tex.name, tex.width, tex.height, tex.depth, tex.mips);
|
||||
@@ -1214,6 +1219,15 @@ namespace renderdocui.Windows
|
||||
m_Output.AddThumbnail(handle, id);
|
||||
});
|
||||
}
|
||||
else if (buf != null)
|
||||
{
|
||||
prev.Init(!buf.customName && bindName.Length > 0 ? bindName : buf.name, buf.length, 0, 0, Math.Max(1, buf.structureSize));
|
||||
IntPtr handle = prev.ThumbnailHandle;
|
||||
m_Core.Renderer.BeginInvoke((ReplayRenderer rep) =>
|
||||
{
|
||||
m_Output.AddThumbnail(handle, ResourceId.Null);
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
prev.Init();
|
||||
|
||||
Reference in New Issue
Block a user