commit | bf009f50c552147bafb3e241b7888d282e083636 | [log] [tgz] |
---|---|---|
author | Corentin Wallez <cwallez@chromium.org> | Mon May 11 18:55:52 2020 +0000 |
committer | Commit Bot service account <commit-bot@chromium.org> | Mon May 11 18:55:52 2020 +0000 |
tree | c8c411639a42752d88c52af7848dc24168b9f374 | |
parent | 19b21c5b85cfd79fb7f4bd62538edc22f83bf8f0 [diff] |
Add a test for creating a 0-sized buffer. This is valid in WebGPU but causes validation errors in backends. Also make it an OOM error on Metal to request a buffer close to UINT32_MAX size because it would truncate the size, and could lead to OOBs. Bug: chromium:1069076 Change-Id: Ib961cb236cb7cabc0ae21203bf1d72ba82a56272 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/21060 Reviewed-by: Austin Eng <enga@chromium.org> Reviewed-by: Stephen White <senorblanco@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
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 webgpu.h docs)
(TODO)
Apache 2.0 Public License, please see LICENSE.
This is not an officially supported Google product.