D3D11: Unmap buffers before GPU use via TrackUsage() This change ensures that D3D11 buffers are properly unmapped before being used by the GPU. A new TrackUsage() method is added to Buffer that checks if the buffer is already tracked for the current command serial, and if not, unmaps the buffer and marks it as used. Key changes: - Added Buffer::TrackUsage() which unmaps the buffer if needed before marking it as used in pending commands - TrackUsage() is called before any GPU operation on buffers - Removed deferred unmap mechanism (DeferUnmap, PerformDeferredUnmaps) - Added isInitialWrite parameter to WriteInternal() to enable mapping optimization for clear operations Bug: chromium:422741977 Change-Id: Icd7dd2333f8576d47a43575120fd9d86b8f26705 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/288115 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Quyen Le <lehoangquyen@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.