Skip to content

Conversation

@spall
Copy link
Collaborator

@spall spall commented Dec 3, 2025

Update groupshared args proposal with info about overloads and error produced by old compilers.

Closes #745

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.
Copy link
Collaborator

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"?

Copy link
Collaborator

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.

Copy link
Collaborator

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.

Copy link
Collaborator Author

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.

Copy link
Collaborator

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

@spall spall merged commit 7817bea into microsoft:main Jan 5, 2026
4 checks passed
@github-project-automation github-project-automation bot moved this to Triaged in HLSL Triage Jan 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Triaged

Development

Successfully merging this pull request may close these issues.

[0043] update groupshared arguments proposal

4 participants