Add 'bind' to display of samplers in shader debugger

* If there is no set/space and no array index, a single number is unclear of
  what it actually means (when there is no sampler object, we don't have
  anything to refer to except the binding).
This commit is contained in:
baldurk
2026-08-07 16:26:33 +01:00
parent a322de964b
commit a99a02c51b
+2 -2
View File
@@ -3069,9 +3069,9 @@ QString ShaderViewer::samplerRep(const ShaderSampler &samp, uint32_t arrayElemen
}
if(arrayElement == ~0U || samp.bindArraySize == 1)
contents += QString::number(samp.fixedBindNumber);
contents += QFormatStr("bind %1").arg(samp.fixedBindNumber);
else
contents += QFormatStr("%1[%2]").arg(samp.fixedBindNumber).arg(arrayElement);
contents += QFormatStr("bind %1[%2]").arg(samp.fixedBindNumber).arg(arrayElement);
return contents;
}