commit | 46e07b16b9312162a34e110e96bb19fa672ddc8d | [log] [tgz] |
---|---|---|
author | Corentin Wallez <cwallez@chromium.org> | Tue Oct 15 15:10:51 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Oct 15 15:10:51 2024 +0000 |
tree | 1ec2ba6ff15b1a3292166cfa0a45c75b68d485fa | |
parent | 168e8b6c663edbf4673ea6b117c657e86644d905 [diff] |
[dawn][webgpu.h] Remove webgpu_cpp.h's use of memcpy. This use was added for a temporary workaround of const char* in callbacks instead of wgpu::StringView. The addition of the memcpy should have come with a corresponding #include <cstring> but instead replace the memcpy with a manually written loop. This is ok because 1) the code is cold and the deprecated path and 2) compilers know to replace such simple loops with memcpy calls. This way in the future when the deprecation workaround is removed, we don't need to remember to remove the #include. Bug: 42241188 Change-Id: Ifb6def95790196481797fc9f3962e05ed290d768 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/210934 Reviewed-by: Geoff Lang <geofflang@chromium.org> Commit-Queue: Geoff Lang <geofflang@chromium.org> Auto-Submit: Corentin Wallez <cwallez@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.