commit | 99121119b08bc428c5e7c1bf8acc4646c3693822 | [log] [tgz] |
---|---|---|
author | Kai Ninomiya <kainino@chromium.org> | Wed May 14 18:29:14 2025 -0700 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed May 14 18:29:14 2025 -0700 |
tree | 92cd7b726cdc90a9597f6bb75fe0ec151e23c907 | |
parent | 271e5d9f35f7d15b79681fcc4585cc62f3505439 [diff] |
[emscripten] Validate invalid callback modes - Add ValidateCallbackMode helper. It allows only valid modes, or if callback is nullptr, it also allows WGPUCallbackMode(0). - Use it to validate every CallbackMode (of which there are 9). - Default WGPUCallbackMode(0) to AllowSpontaneous in TrackedEvent. - Simplify TrackEvent() which no longer needs to deal with this. - Remove workaround for kDefaultDescriptor in RequestDevice. No-Try: true Bug: 42241221 Change-Id: Icca908e39e189ff257fd38bf61831728f2f68873 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/242096 Commit-Queue: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Loko Kung <lokokung@google.com>
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.