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

Fix WGSL parameter block binding. #5500

Merged
merged 7 commits into from
Nov 6, 2024
Merged

Conversation

csyonghe
Copy link
Collaborator

@csyonghe csyonghe commented Nov 5, 2024

Closes #5222.

@csyonghe csyonghe added the pr: non-breaking PRs without breaking changes label Nov 5, 2024
@csyonghe csyonghe requested a review from a team as a code owner November 5, 2024 23:56
@@ -87,9 +87,23 @@ void WGSLSourceEmitter::emitParameterGroupImpl(
auto varLayout = getVarLayout(varDecl);
SLANG_RELEASE_ASSERT(varLayout);

for (auto attr : varLayout->getOffsetAttrs())
EmitVarChain blockChain(varLayout);
Copy link
Collaborator

Choose a reason for hiding this comment

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

we're finally web3

Copy link
Collaborator

Choose a reason for hiding this comment

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

we're finally web3

Speaking of block chains...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I am not accountable for this. The code and naming is copied from the glsl implementation. I am curious who did this.

expipiplus1
expipiplus1 previously approved these changes Nov 6, 2024
@csyonghe csyonghe merged commit 2533125 into shader-slang:master Nov 6, 2024
14 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.

slang-RHI/WebGPU: Binding missing from bind group layout
3 participants