mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-28 09:26:52 +00:00
Don't display previews for sampler resources
This commit is contained in:
@@ -1331,7 +1331,8 @@ namespace renderdocui.Windows
|
||||
FormatComponentType typeHint = resArray != null ? resArray[arrayIdx].typeHint : FormatComponentType.None;
|
||||
|
||||
bool used = key.used;
|
||||
bool skip = false;
|
||||
bool samplerBind = false;
|
||||
bool otherBind = false;
|
||||
|
||||
string bindName = "";
|
||||
|
||||
@@ -1340,11 +1341,20 @@ namespace renderdocui.Windows
|
||||
if (bind.bindPoint == idx && bind.IsSRV)
|
||||
{
|
||||
bindName = bind.name;
|
||||
otherBind = true;
|
||||
break;
|
||||
}
|
||||
|
||||
if (bind.bindPoint == idx)
|
||||
{
|
||||
if(bind.IsSampler && !bind.IsSRV)
|
||||
samplerBind = true;
|
||||
else
|
||||
otherBind = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (skip)
|
||||
if (samplerBind && !otherBind)
|
||||
continue;
|
||||
|
||||
if (copy)
|
||||
|
||||
Reference in New Issue
Block a user