From a99a02c51bcd1567ea8b8a39ed73afe7f557473c Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 7 Aug 2026 12:03:28 +0100 Subject: [PATCH] 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). --- qrenderdoc/Windows/ShaderViewer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qrenderdoc/Windows/ShaderViewer.cpp b/qrenderdoc/Windows/ShaderViewer.cpp index 7c57ed119..7a9fca13c 100644 --- a/qrenderdoc/Windows/ShaderViewer.cpp +++ b/qrenderdoc/Windows/ShaderViewer.cpp @@ -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; }