commit | 806c58324c292a10c8d344fa8f0cd33fc1dbcaa5 | [log] [tgz] |
---|---|---|
author | Jiawei Shao <jiawei.shao@intel.com> | Wed Nov 23 02:06:11 2022 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Nov 23 02:06:11 2022 +0000 |
tree | 76ee60ad8078d56261a93551f942ce5dd094c34d | |
parent | a8bc2962598a16b369840059425754da3c530522 [diff] |
Wire: Make validation error prior to OOM if mappedAtCreation == false This patch updates the validations about CreateBuffer() with dawn_wire to match the latest WebGPU SPEC. According to the SPEC, the validations in CreateBuffer() should be executed in the below order: 1. If mappedAtCreation == true, return nullptr and a RangeError will be generated in Chromium. 2. Validate BufferDescriptor and check if there is OOM at device timeline 3. Check if there is OOM at content timeline Bug: dawn:1586 Change-Id: I97ff5f82a42208442ddf6e46e66381c3b3680450 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/109040 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Kai Ninomiya <kainino@chromium.org> Commit-Queue: Jiawei Shao <jiawei.shao@intel.com>
Dawn is an open-source and cross-platform implementation of the work-in-progress 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)
(TODO)
Apache 2.0 Public License, please see LICENSE.
This is not an officially supported Google product.