gpuweb / cts

WebGPU Conformance Test Suite
https://gpuweb.github.io/cts/
BSD 3-Clause "New" or "Revised" License
130 stars 82 forks source link

Add validation tests on blend factors with Src1 and @blend_src #3881

Closed Jiawei-Shao closed 3 months ago

Jiawei-Shao commented 3 months ago

This patch adds the validation tests on the use of blend factors with Src1 and @blend_src in the fragment shader. When the blend factor uses Src1, @blend_src must be used in the fragment shader whether the corresponding colorWriteMask is 0 or not, as is required by Metal.

The changes against WebGPU SPEC is https://github.com/gpuweb/gpuweb/pull/4791.

Issue: #3810


Requirements for PR author:

Requirements for reviewer sign-off:

When landing this PR, be sure to make any necessary issue status updates.