mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-30 19:31:07 +00:00
Give variables names based on their types
* This is common for constant buffers where the struct type may be named if the variable isn't
This commit is contained in:
@@ -516,6 +516,9 @@ ShaderDebugTrace *Debugger::BeginDebug(DebugAPIWrapper *apiWrapper, const Shader
|
||||
|
||||
const DataType &innertype = dataTypes[type.InnerType()];
|
||||
|
||||
if(sourceName == var.name)
|
||||
sourceName = GetHumanName(innertype.id);
|
||||
|
||||
const bool ssbo = (v.storage == StorageClass::StorageBuffer) ||
|
||||
(decorations[innertype.id].flags & Decorations::BufferBlock);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user