-
Notifications
You must be signed in to change notification settings - Fork 677
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
Conversation
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.
There was a problem hiding this 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:
- It will need to be rebased on top of the clang-formatted branch.
- 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.
There was a problem hiding this 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.
tools/clang/test/HLSLFileCheck/d3dreflect/empty_broadcasting_nodes.hlsl
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
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