[d3d12] Track shared texture usage when recording commands. - Prior to this change, the D3D12 backend only updated a shared texture's last shared texture memory usage serial in SynchronizeTextureBeforeUse(), which is called when the command list is executed. However, the texture's initialized state is updated as soon as the commands are recorded. If the command list was never executed (e.g. because the submit failed or the device was lost), EndAccess was not aware that the texture was used, and could report it as initialized even though the commands initializing it never ran. - This change instead updates the usage serial when the texture is added to the shared texture list while recording, like the other backends already do, and no longer updates it in SynchronizeTextureBeforeUse(). This also avoids updating the usage serial after the access already ended when EndAccess flushes the pending commands. Bug: 577360270 Change-Id: Ida95b9c6dd4ef57f593e0898d43d9f41e23eaec6 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/355035 Auto-Submit: Loko Kung <lokokung@google.com> Reviewed-by: Antonio Maiorano <amaiorano@google.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Antonio Maiorano <amaiorano@google.com>
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.