Skip to content

Conversation

@FrostyLeaves
Copy link
Contributor

Functions defined in files included via __include were missing DebugFunctionDefinition in SPIRV debug output. This was because included source files were not being added to the translation unit's source file list, which is used during debug info generation.

The fix adds included source files to the translation unit by calling addIncludedSourceFileIfNotExist when processing __include directives.

Functions defined in files included via __include were missing
DebugFunctionDefinition in SPIRV debug output. This was because
included source files were not being added to the translation unit's
source file list, which is used during debug info generation.

The fix adds included source files to the translation unit by calling
addIncludedSourceFileIfNotExist when processing __include directives.
@FrostyLeaves FrostyLeaves requested a review from a team as a code owner January 19, 2026 11:52
@FrostyLeaves FrostyLeaves changed the title Fix missing DebugFunctionDefinition for functions in other module. Fix RenderDoc F11 step-into failure for cross-module Slang functions Jan 20, 2026
@csyonghe csyonghe added the pr: non-breaking PRs without breaking changes label Jan 23, 2026
@csyonghe
Copy link
Collaborator

Changes are clean and looks good to me. Thank you for contributing!

@expipiplus1 expipiplus1 enabled auto-merge January 26, 2026 07:28
@expipiplus1 expipiplus1 added this pull request to the merge queue Jan 26, 2026
Merged via the queue into shader-slang:master with commit 7d9829a Jan 26, 2026
37 checks passed
Comment on lines +1876 to +1880
// Add to translation unit's source files for debug info generation
if (translationUnit)
{
translationUnit->addIncludedSourceFileIfNotExist(sourceFile);
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@FrostyLeaves , can you explain why these lines are needed.
This appears to be causing CI failure on slangpy repo.

I am going to revert it for now to resolve the CI failure.
#9791

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: non-breaking PRs without breaking changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants