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

Make 'shared' keyword map to 'groupshared' in GLSL mode #6003

Merged

Conversation

juliusikkala
Copy link
Contributor

The "shared" keyword in GLSL mode should be equivalent to "groupshared" in HLSL & Slang. It got interpreted as a D3D11 effect system thing instead, but that would never appear in GLSL code. Because of this, "shared" was ignored, breaking effectively any GLSL shader using shared memory. This PR fixes that by interpreting "shared" as HLSLGroupSharedModifier when GLSL input is allowed.

Related to #5989 but does not close that issue.

@juliusikkala juliusikkala requested a review from a team as a code owner January 4, 2025 20:17
Copy link
Collaborator

@csyonghe csyonghe left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@csyonghe csyonghe added the pr: non-breaking PRs without breaking changes label Jan 4, 2025
@csyonghe csyonghe merged commit 00e7542 into shader-slang:master Jan 4, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: non-breaking PRs without breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants