| commit | 7d09d55cee2e840eebd0c45af3d25c8df885eefa | [log] [tgz] |
|---|---|---|
| author | Kai Ninomiya <kainino@chromium.org> | Wed Dec 20 23:39:28 2023 +0000 |
| committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Dec 20 23:39:28 2023 +0000 |
| tree | c59372d86fffc1f7b656dea1b6be9c4ae753bdd1 | |
| parent | 5566afc92caff56df84a8666b7364412ed0d5f39 [diff] |
webgpu.h: Reserve 0 for enums, in a few more possibly-breaking cases
These enums should be required to be set explicitly, so 0 is now
supposed to be invalid (where previously zero-init would just give you
the 0th enum value).
- AlphaMode is used in CopyTextureForBrowser. Since Chromium tests run
on CQ, any breakage here should be caught (except it's known that the
reftests aren't running on CQ and could hit this. I've run those
locally.)
- It is also reordered to sort-of mirror GPUCanvasAlphaMode even
though it is not the same thing.
- QueryType is used in QuerySetDescriptor. Since there's no reasonable
default here it's less likely anyone has written code that's using
zero-init to get occlusion queries, but there could be.
Bug: dawn:2224
Change-Id: I0e74b37baa7b164ee6f3ad4fe05e91d91e25f104
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/166388
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Loko Kung <lokokung@google.com>
Reviewed-by: Loko Kung <lokokung@google.com>
Auto-Submit: Kai Ninomiya <kainino@chromium.org>
Dawn is an open-source and cross-platform implementation of the WebGPU standard. More precisely it implements webgpu.h that is a one-to-one mapping with the WebGPU IDL. Dawn is meant to be integrated as part of a larger system and is the underlying implementation of WebGPU in Chromium.
Dawn provides several WebGPU building blocks:
webgpu.h version that Dawn implements.webgpu.h.Helpful links:
Developer documentation:
User documentation: (TODO, figure out what overlaps with the webgpu.h docs)
BSD 3-Clause License, please see LICENSE.
This is not an officially supported Google product.