Never create staging buffer for shared buffer memory with CPU access This patch avoids creating staging buffer for the buffers created with `mappedAtCreation == true` on a shared buffer memory with CPU access (for example, created from a shared memory file handle). This patch also ensures that the buffer created from a shared buffer memory with `mappedAtCreation == true` won't be initialized to zero when `beginAccessDesc.initialized` is true, and will always be initialized to zero when `beginAccessDesc.initialized` is false. Bug: 386255678 Change-Id: I49313ef56320acd749131b97422fb8b3f0ab0bb9 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/321855 Commit-Queue: Shao, Jiawei <jiawei.shao@intel.com> Reviewed-by: 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.