-
Notifications
You must be signed in to change notification settings - Fork 54
[0043] Update groupshared args proposal with information about overloads #748
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
Conversation
| declarations. In language modes before HLSL 202x, a warning will be produced, | ||
| but it should still be supported if the compiler supports the feature. | ||
| but it should still be supported if the compiler supports the feature. If the | ||
| compiler does not support the feature an error should be produced. |
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.
Is it optional for a compiler to support groupshared parameters? Or is this more of a "clang doesn't do this yet, but will eventually"?
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.
Any compiler that supports HLSL 202x should support this feature.
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.
Since all compilers under development should support the feature, I think this is just meant to capture the fact that prior versions of DXC compilers will produce an error in this case.
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.
Yes it essentially means any compiler which supports 202x supports this feature even if you don't use the 202x language mode. And yes to what @tex3d said.
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 see. I don't feel strongly about it but maybe a better wording is
In language modes before HLSL 202x, a warning will be produced,
but it should still be supported if the compiler supports HLSL 202x. If the
compiler does not support HLSL 202x an error should be produced.
"this feature" feels a bit vague while calling out that "support HLSL 202x implies support groupshared pre-HLSL 202x" feels a bit more precise
Not blocking on it though
Update groupshared args proposal with info about overloads and error produced by old compilers.
Closes #745