mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-23 06:05:45 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user