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

Disallow NodeOutput or EmptyNodeOutput array node parameters #5588

Merged
merged 10 commits into from
Oct 2, 2023

Conversation

tcorringham
Copy link
Collaborator

@tcorringham tcorringham commented Aug 23, 2023

The NodeOutputArray and EmptyNodeOutputArray types are provided for use as node shader parameter types to be used instead of native array types.
Add error diagnostics for the use of native NodeOutput or EmptyNodeOutput arrays, and add a corresponding verifier test.

Fixes #5359

The NodeOutputArray and EmptyNodeOutputArray types are provided
for use as node shader parameter types to be used instead of
native array types.
Add error diagnostics for the use of native NodeOutput or
EmptyNodeOutput arrays, and add a corresponding verifier test.
Copy link
Collaborator

@llvm-beanz llvm-beanz left a comment

Choose a reason for hiding this comment

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

I think this is good with two caveats:

  1. It will need to be rebased on top of the clang-formatted branch.
  2. If we can also rebase it on top of Don't string match node type names #5763, we should remove the string matching of type names.

This change just simplifies the underlying implementaiton to avoid
string matching and to not need additional HlslTypes functions.
This change updates the underlying change to emit a diagnostic for all
input and output node types when used as entry parameter arrays.
Copy link
Member

@pow2clk pow2clk left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks for expanding the errors.

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!

@llvm-beanz llvm-beanz merged commit f405983 into microsoft:staging-sm-6.8 Oct 2, 2023
11 checks passed
@tcorringham tcorringham deleted the issue-5359 branch October 12, 2023 17:30
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.

Diagnostics for native NodeOutput or EmptyNodeOutput array declaration
4 participants