这是indexloc提供的服务,不要输入任何密码
Skip to content

Fix the computation of inter-stage shader components #4503

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

Merged
merged 2 commits into from
Mar 7, 2024

Conversation

Jiawei-Shao
Copy link
Contributor

In the validation of inter-stage interfaces, each user-defined inter-stage shader variable should always consume 4 inter-stage shader components because in latest Vulkan SPEC the Location value specifies an interface slot comprised of a 32-bit four-component vector conveyed between stages.

Fixes: #1962

In the validation of inter-stage interfaces, each user-defined
inter-stage shader variable should always consume 4 inter-stage
shader components because in latest Vulkan SPEC the Location value
specifies an interface slot comprised of a 32-bit four-component
vector conveyed between stages.

Fixes: gpuweb#1962
Copy link
Contributor

Previews, as seen when this build job started (60a1d91):
WebGPU webgpu.idl | Explainer | Correspondence Reference
WGSL grammar.js | wgsl.lalr.txt

Copy link
Contributor

@Kangz Kangz left a comment

Choose a reason for hiding this comment

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

LGTM but I'd like editors to review and other browser engines to agree to this bugfix.

Copy link
Contributor

@kainino0x kainino0x left a comment

Choose a reason for hiding this comment

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

Pretty sure this will work, left my concerns in the issue.

@kdashg kdashg merged commit 5b46514 into gpuweb:main Mar 7, 2024
@kainino0x kainino0x added the needs-cts-issue This change requires tests (or would need tests if accepted), but may not have a CTS issue filed yet label Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-cts-issue This change requires tests (or would need tests if accepted), but may not have a CTS issue filed yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Should we constrain the location of user input-output stage variables WGSL
5 participants