gpuweb / cts

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

Add texture type and return type tests to #3651

Closed greggman closed 2 months ago

greggman commented 2 months ago

textureGather and textureGatherCompare

Also, added missing types to existing tests.

Issue: #3586 #3594

note: I wasn't sure if I should make stringToType take a keyof Type instead of string. I'm not even sure that would make and if I should add vec4<f32> to Type etc... As it's, without stringToType you can not round trip because Type.vec4f serializes to vec4<f32> but there is no Type['vec4<f32>']. I was also worried about how many places I'd have to coerce strings into keys of Type. I feel like the assert covers it.


Requirements for PR author:

Requirements for reviewer sign-off:

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