Skip to content

Commit

Permalink
Update SpirvWriter.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
SirLynix committed Nov 30, 2024
1 parent c1eaed7 commit 9c93939
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NZSL/SpirvWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ namespace nzsl
ExternalVar& extVarData = extVars[*extVar.varIndex];

SpirvConstantCache::Variable variable;
variable.debugName = node.name + extVar.name;
variable.debugName = (!node.name.empty()) ? fmt::format("{}_{}", node.name, extVar.name) : extVar.name;

const Ast::ExpressionType& extVarType = extVar.type.GetResultingValue();

Expand Down

0 comments on commit 9c93939

Please sign in to comment.