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:
baldurk
2020-04-24 20:14:47 +01:00
parent 83bbcc5b51
commit 068660bb1d
@@ -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);