| commit | ccc243cd4a3bd33fdb2ae5da97bb7bc13ddf8369 | [log] [tgz] |
|---|---|---|
| author | Kai Ninomiya <kainino@chromium.org> | Mon Jan 26 14:01:39 2026 -0800 |
| committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Jan 26 14:01:39 2026 -0800 |
| tree | b663d4d454dc2fa07cb1b008d7372069a68c3db4 | |
| parent | 361a4f1cf5944012365916a4081238e7f20458ab [diff] |
[dawn][metal] ArgBufs: call useResource for all resources in the usage scope This is required for Metal to manage both residency and hazards for us, since it can't see what resources are used in the argument buffers. It's similar to other backends, but a bit simpler because we're still letting Metal do automatic hazard tracking for us). Metal Shader Validation catches this issue, so verified this fix using both Animometer and ComputeBoids, with: MTL_SHADER_VALIDATION=1 MTL_SHADER_VALIDATION_REPORT_TO_STDERR=1 and: --enable-toggles=metal_use_argument_buffers --enable-backend-validation=full Fixed: 477317116 Change-Id: I9cab58582ff08d52966ac06ba86df33399d4aa8c Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/286136 Reviewed-by: dan sinclair <dsinclair@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Kai Ninomiya <kainino@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.