Skip to content

Conversation

@tdavidovicNV
Copy link
Collaborator

Right now, the Module deduplication happens only on the Slang level. That is, Slang will return the same slang::IModule object for a duplicate request.

This PR propagates this up to sgl::SlangSession and ensures that if SlangSession will return only one SlangModule for each slang::IModule. This is achieved by first creating SlangModule and then deduplicating based on the slang::IModule the sgl::SlangModule contains. This is slightly less efficient than checking the inputs directly, but it strictly defers to the way Slang handles its deduplication.

@tdavidovicNV tdavidovicNV requested a review from a team as a code owner September 25, 2025 04:16
@tdavidovicNV tdavidovicNV marked this pull request as draft September 25, 2025 08:28
@tdavidovicNV
Copy link
Collaborator Author

Add tests, and add to load_from_file

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants