-
Notifications
You must be signed in to change notification settings - Fork 321
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
Add optional feature dual_source_blending #4621
Conversation
Previews, as seen when this build job started (b98a4b0): |
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.
Still some issues in the validation algorithm; it was too complicated to try to explain what should be done so I've pushed a commit. Please review my changes!
Thanks @kainino0x and @alan-baker ! I've merged the main branch into the PR and fixed several nits in Kai's comment. PTAL ,thanks! |
Thanks for the fixes! API text LGTM (except that I wrote part of it) but I haven't checked if it matches the validation in the backends. Will need tests. |
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.
One request for the WebGPU spec, but overall it's looking good! I'm not in a good position to evaluate the WGSL spec changes.
Thanks for adding the feature column to the blend factor table! LGTM, though I'll wait for someone on the WGSL spec side to give final approval. |
As is required by Metal Shading Language: ``` 5.2.3.5 Fragment Function Output Attributes Multiple elements in the fragment function return type that use the same color attachment index for blending needs to be declared with the same data type. ```
Thanks @alan-baker! @kainino0x could you take a look? |
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.
Overall looks good.
I have one suggestion: forbid use of blend_src without also having a location attribute.
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.
Looks consistent with what we previously agreed on. 👍
WGSL 2024-06-04 Minutes
|
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.
LGTM!
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.
Thanks! Sorry for the delay.
@kainino0x can we merge this PR right now? |
Yes we can merge. |
GPU Web WG 2024-05-29 Atlantic-time
|
This patch adds
dual_source_blending
to WebGPU and WGSL SPEC.dual_source_blending
as an optional feature in both WebGPU and WGSL.@blend_src
in WGSL whendual_source_blending
is enabled.src1
to WebGPU SPEC.Fixed: #4283