-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dual source blending blend factors to
kBlendFactors
(#3884)
* Add dual source blending blend factors to `kBlendFactors` This patch adds all the blend factors defined in the extension "dual-source-blending" to `kBlendFactors` in capability_info.ts so that all the tests about blend factors can test these newly added blend factors. This patch also removes the validation tests about using the alpha channel of `Src1` because it doesn't follow the latest SPEC: only when the color blend factor uses the alpha channel of `Src` must the fragment output be `vec4`. When the color target doesn't have the alpha channel, the alpha blend factor is ignored so it is OK to set it as if it "uses" the alpha channel of `Src`. Note that the new validation test against `Src1-alpha` will be added into 'pipeline_output_targets,blend' after the fix is landed in the browser. * Improve the test descriptions and messages in `TODO`
- Loading branch information
1 parent
1654b1d
commit a70b240
Showing
3 changed files
with
61 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters