mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-21 21:26:12 +00:00
Add component clarifier for multiple outputs
* This prevents multiple outputs being declared with the same name and aliasing.
This commit is contained in:
@@ -938,6 +938,12 @@ ShaderDebugTrace *Debugger::BeginDebug(DebugAPIWrapper *api, const ShaderStage s
|
||||
StringFormat::Fmt("_%s%u", isInput ? "input" : "output", decorations[v.id].location);
|
||||
else
|
||||
sourceName = StringFormat::Fmt("_sig%u", v.id.value());
|
||||
|
||||
for(const DecorationAndParamData &d : decorations[v.id].others)
|
||||
{
|
||||
if(d.value == Decoration::Component)
|
||||
sourceName += StringFormat::Fmt("_%u", d.component);
|
||||
}
|
||||
}
|
||||
|
||||
const DataType &type = dataTypes[v.type];
|
||||
|
||||
@@ -1204,6 +1204,12 @@ void Reflector::MakeReflection(const GraphicsAPI sourceAPI, const ShaderStage st
|
||||
decorations[global.id].location);
|
||||
else
|
||||
name = StringFormat::Fmt("_sig%u", global.id.value());
|
||||
|
||||
for(const DecorationAndParamData &d : decorations[global.id].others)
|
||||
{
|
||||
if(d.value == Decoration::Component)
|
||||
name += StringFormat::Fmt("_%u", d.component);
|
||||
}
|
||||
}
|
||||
|
||||
const bool used = usedIds.find(global.id) != usedIds.end();
|
||||
|
||||
Reference in New Issue
Block a user