Skip to content

Add outputs to the IDxcResult when linking - #5678

Merged
David Peixotto (dmpots) merged 3 commits into
microsoft:mainfrom
dmpots:link-more-outputs
Sep 12, 2023
Merged

David Peixotto (dmpots) merged 3 commits into
microsoft:mainfrom
dmpots:link-more-outputs

Conversation

@dmpots

@dmpots David Peixotto (dmpots) commented Sep 9, 2023 •

Copy link
Copy Markdown
Contributor

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 Tex Riddell (@tex3d). Tests added by David Peixotto (@dmpots).

@tex3d Tex Riddell (tex3d) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

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