commit | 69433722b83b5294b3e339150d07aaf4296dab91 | [log] [tgz] |
---|---|---|
author | Sunny Sachanandani <sunnyps@chromium.org> | Fri Aug 16 01:55:44 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Aug 16 01:55:44 2024 +0000 |
tree | 6199b7b73919b06d9b1b5c05406e36568873211d | |
parent | 628906f5ac9cb3e1feb3e45f73e073ba4f2d19c2 [diff] |
Add method to reduce memory usage by dropping scratch buffers Add dawn::native::ReduceMemoryUsage() to be called by Chromium when going idle or on memory pressure. Currently, this only drops scratch buffers e.g. DynamicUploader, InternalPipelineStore, etc. Bug: 357139493 Change-Id: Ida06b851f19eb95982980f1649c118ec69fea43b Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/202277 Reviewed-by: Loko Kung <lokokung@google.com> Auto-Submit: Sunny Sachanandani <sunnyps@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Austin Eng <enga@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.