-
Notifications
You must be signed in to change notification settings - Fork 337
Add validation changes to texture component swizzle proposal #5252
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
Conversation
@Kangz Please review. |
Previews, as seen when this build job started (e0f841a): |
|
||
## Validation | ||
|
||
A validation error happens if the swizzle is not the default and the `"texture-component-swizzle"` feature is enabled. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think that this is what the group previously agreed to. If we add new things to the IDL, passing incorrect values in it will result in errors if the feature is not enabled. This is the same as when a new IDL dictionary member is added and JS code that happened to use it previously might start getting a TypeError.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant "the "texture-component-swizzle"
feature is not enabled" sorry
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll wait for the group to discuss and approve #5264 before merging.
This CL makes sure a validation error happens if the swizzle is not the default and the `"texture-component-swizzle"` feature is not enabled. Before, the validation error would occur for all types of swizzle when the feature would be disabled. Spec PR: gpuweb/gpuweb#5252 Bug: 414312052 Change-Id: I460ab817584356acb96bb2e1c1ddd0c1577997a8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6818591 Commit-Queue: Corentin Wallez <[email protected]> Reviewed-by: Corentin Wallez <[email protected]> Commit-Queue: Fr <[email protected]> Cr-Commit-Position: refs/heads/main@{#1496924}
Following #5217 (comment) and #5217 (comment), this PR adds validation changes to the texture component swizzle proposal.