gpuweb / cts

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

shader/validation: Add compound assignment validation #3648

Closed ben-clayton closed 2 months ago

ben-clayton commented 2 months ago

Extend the binary operator expression validation to also validate compound assignment.

Also calculate the binary operator's resulting type, and use that to validate the result type is as expected.

Issue: #1644


Requirements for PR author:

Requirements for reviewer sign-off:

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

ben-clayton commented 2 months ago

Thanks!