Handle some edge cases around samplers being lumped in with RO resources

This commit is contained in:
baldurk
2017-06-21 11:05:40 +01:00
parent 90077f54ee
commit 1dc3f65445
+2 -2
View File
@@ -1338,7 +1338,7 @@ namespace renderdocui.Windows
foreach (var bind in resourceDetails)
{
if (bind.bindPoint == idx && bind.IsSRV)
if (bind.bindPoint == idx && bind.IsSRV && !bind.IsSampler)
{
bindName = bind.name;
otherBind = true;
@@ -1347,7 +1347,7 @@ namespace renderdocui.Windows
if (bind.bindPoint == idx)
{
if(bind.IsSampler && !bind.IsSRV)
if(bind.IsSampler)
samplerBind = true;
else
otherBind = true;