commit | f7fab5a259a86663b5bf8b429c44cd35c94d34f7 | [log] [tgz] |
---|---|---|
author | Corentin Wallez <cwallez@chromium.org> | Tue Jun 30 18:46:32 2020 +0000 |
committer | Commit Bot service account <commit-bot@chromium.org> | Tue Jun 30 18:46:32 2020 +0000 |
tree | df7201d0c1b15c4d1321823a405d6a9187225815 | |
parent | 00d6215be9c8287d697b7cc3c9e2f7d2b3f0a68d [diff] |
dawn_native: Use correct integer width for SetSubData. SetSubData's count is a uint64_t while Queue::WriteBuffer's is a size_t so we add a small validation check that no narrowing will occur. No test is added because SetSubData will be removed soon, and it will be hard to test because of the Null backend's artificial OOM. This was found while debugging an unrelated fuzzer issue. Bug: chromium:1099621 Change-Id: I27a9da2b94f51e889c5573f88d4a0a73fea5985c Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/23961 Reviewed-by: Stephen White <senorblanco@chromium.org> Reviewed-by: Austin Eng <enga@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.