Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add outputs to the IDxcResult when linking #5678

Merged
merged 3 commits into from
Sep 12, 2023

Conversation

dmpots
Copy link
Contributor

@dmpots dmpots commented Sep 9, 2023

This change modifies the IDxcLinker::Link api to return outputs via the
IDxcResult interface. We now support getting the following outputs from the
IDxcResult returned from the call to Link

DXC_OUT_REFLECTION
DXC_OUT_SHADER_HASH
DXC_OUT_ERRORS
DXC_OUT_ROOT_SIGNATURE

Additionally, the DXC_OUT_OBJECT output will now set its name based on the /Fo
command line flag.

This makes the api more consistent with the Compile output and makes it easier
to access these outputs without having to crack open the dxil container.

Original patch by @tex3d. Tests added by @dmpots.

@dmpots dmpots requested a review from tex3d September 9, 2023 00:23
Copy link
Contributor

@tex3d tex3d left a comment

Choose a reason for hiding this comment

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

LGTM!

@dmpots dmpots merged commit 3b408e5 into microsoft:main Sep 12, 2023
13 checks passed
@dmpots dmpots deleted the link-more-outputs branch September 12, 2023 03:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants