Skip to content

Fix attribute validation#4998

Merged
kainino0x merged 2 commits into
gpuweb:mainfrom
kainino0x:fix-attribute-validation
Nov 26, 2024
Merged

Fix attribute validation#4998
kainino0x merged 2 commits into
gpuweb:mainfrom
kainino0x:fix-attribute-validation

Conversation

@kainino0x

Copy link
Copy Markdown
Contributor

I suggest reviewing commits separately

Note the previous (nonsensical) validation required each shader attribute to have one GPUVertexAttribute matching BOTH its location and type. The new validation requires each shader attribute to have one GPUVertexAttribute matching its location, then that attribute must match in type. This should be the same because we also had validation that said each shaderLocation in the pipeline was unique.

Fixes #4994

@kainino0x kainino0x added this to the Milestone 0 milestone Nov 26, 2024
@kainino0x kainino0x added copyediting Pure editorial stuff (copyediting, *.bs file syntax, etc.) api WebGPU API labels Nov 26, 2024
@kainino0x kainino0x requested a review from toji November 26, 2024 02:18
@github-actions

Copy link
Copy Markdown
Contributor

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

@toji toji left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thanks for the nice cleanup!

@kainino0x kainino0x merged commit e567f2e into gpuweb:main Nov 26, 2024
@kainino0x kainino0x deleted the fix-attribute-validation branch November 26, 2024 18:13
kainino0x added a commit to kainino0x/gpuweb that referenced this pull request Nov 26, 2024
kainino0x added a commit that referenced this pull request Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api WebGPU API copyediting Pure editorial stuff (copyediting, *.bs file syntax, etc.)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Validation that vertex attributes exist is in the wrong place

2 participants