Don't display previews for sampler resources

This commit is contained in:
baldurk
2016-09-09 20:53:20 +02:00
parent c6fc2cc315
commit 6921b37d8e
+12 -2
View File
@@ -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)