Fix function call line number for calls spanning multiple lines.

This commit is contained in:
Qingyuan Zheng 2024-07-02 08:11:11 +00:00 committed by arcady-lunarg
parent 85262fb20e
commit 704107fda3
4 changed files with 191 additions and 0 deletions

View file

@ -6444,6 +6444,9 @@ spv::Id TGlslangToSpvTraverser::handleUserFunctionCall(const glslang::TIntermAgg
}
}
// Reset source location to the function call location after argument evaluation
builder.setDebugSourceLocation(node->getLoc().line, node->getLoc().getFilename());
// 2. Allocate space for anything needing a copy, and if it's "in" or "inout"
// copy the original into that space.
//