gpuweb / cts

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

Add tests for GPUDevice.adapterInfo #4023

Closed beaufortfrancois closed 3 weeks ago

beaufortfrancois commented 3 weeks ago

This PR adds simple tests for the adapterInfo GPUDevice member. It can be tested in a Chromium build patched with https://chromium-review.googlesource.com/c/chromium/src/+/5980752. It is available behind the "Unsafe WebGPU support" flag at chrome://flag#enable-unsafe-webgpu as the spec PR https://github.com/gpuweb/gpuweb/pull/4809 has not landed yet.

image

Requirements for PR author:

Requirements for reviewer sign-off:

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

kainino0x commented 3 weeks ago

Tested my changes in Canary with --enable-unsafe-webgpu, still works as expected.

beaufortfrancois commented 3 weeks ago

import { keysOf } from '../../../../common/util/data_tables.js'; is useful. Thanks for improving the PR!