mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
Don't display buffers as thumbnails in texture viewer
* This is a holdover from simpler binding times, these days it makes more sense to omit buffers than try to hold onto those bindings even when they don't contain textures.
This commit is contained in:
@@ -2490,6 +2490,10 @@ void TextureViewer::InitStageResourcePreviews(ShaderStage stage,
|
||||
// show if it's referenced by the shader - regardless of empty or not
|
||||
bool show = key.used || copy;
|
||||
|
||||
// omit buffers even if the shader uses them.
|
||||
if(m_Ctx.GetTexture(res.resourceId) == NULL)
|
||||
show = copy;
|
||||
|
||||
// it's bound, but not referenced, and we have "show disabled"
|
||||
show = show || (m_ShowUnused && res.resourceId != ResourceId());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user