gpuweb / cts

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

WGSL textureGather tests #3898

Closed greggman closed 1 month ago

greggman commented 1 month ago

Note: the array tests fail on Chrome Mac because the array_index needs to be clamped.

A few notes:

The textureLoad and textureSampleLevel changes are mostly to because as I implemented textureGather I released I could simplify those tests as well as enable a few more.

In particular:

textureGather uncovered a host of issues in the software renderer and in the function checkCallResults

There was also a bunch of code related to wrapping on edged of cube maps. I originally had code that converted a texel coord + face ndx -> normalize 3d texture coord -> cube coord -> normalized 3d texture coord -> face ndx. This wasn't working which is why I had more complicated wrapping code. Whatever the exact bug was I don't remember but working through things I was able to put this simpler path back.


Requirements for PR author:

Requirements for reviewer sign-off:

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